comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Write PNG from plots with different color tables??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Write PNG from plots with different color tables?? [message #69868] Tue, 02 March 2010 16:17 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Mar 2, 9:06 pm, pp <pp.pente...@gmail.com> wrote:
> On Mar 2, 4:30 pm, Mark Shephard <mark.w.sheph...@gmail.com> wrote:
>
>
>
>> Hi PP,
>
>> Thanks for the prompt response.  I had already tried what you
>> suggested.  When I do so I get a very strange result.  The top half is
>> completely black and the bottom half has the plot repeated three times
>> (still using just one of the color tables).
>
>> ----------------
>> |              |
>> |  BLACK       |
>> |              |
>> ----------------
>> |              |
>> | P1   P1   P1 |
>> |              |
>> ----------------

Just noticed that the default pixel depth was 8, not 24 as I thought.
So tvrd was trying to do something weird, trying to read 3 bytes for
each pixel, where there was only 1. Adding, device,/
set_pixel_depth=24, before the first plot, solves the problem.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: 3-D (stereo) visualization
Next Topic: How to add a new tag to N structures

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:39:22 PDT 2025

Total time taken to generate the page: 0.00416 seconds