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

Home » Public Forums » archive » 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 #70011 is a reply to message #69873] Wed, 03 March 2010 11:16 Go to previous message
Mark Shephard is currently offline  Mark Shephard
Messages: 13
Registered: July 1999
Junior Member
On Mar 3, 10:14 am, "ben.bighair" <ben.bigh...@gmail.com> wrote:
> On Mar 2, 2: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 |
>> |              |
>> ----------------
>
>> Any thoughts?
>
>> Thanks,
>> Mark
>
>> On Mar 2, 2:06 pm, pp <pp.pente...@gmail.com> wrote:
>
>>> On Mar 2, 3:51 pm, Mark Shephard <mark.w.sheph...@gmail.com> wrote:
>
>>>> image = tvrd()
>>>> write_png, file_out, image, r, g, b
>
>>> Do it without color tables instead:
>
>>> image=tvrd(true=1)
>>> write_png,file_out,image
>
> Hi,
>
> What happens if you use David Fanning's handy TVREAD rather than IDL's
> built-in TVRD?
>
> http://dfanning.com/color_tips/strange_tvrd.html
>
> Ben- Hide quoted text -
>
> - Show quoted text -


Hi Guys,

THAT WORKS!!!

Thank you very much for all the help.

I set:
DEVICE, set_pixel_depth=24
TVRD(true=1)

David Fanning explaination of TVRD issues was also very helpful. I
also tried his TVREAD(), but it had the same issue as TVRD()....until
I set the pixel depth in the device. This might be due to the fact
that I am using the Z-buffer.

Thanks again for all the help,
Mark
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Generalized Extreme Value Distribution?
Next Topic: Re: IDLgrPolygon Leak?

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

Current Time: Sun Oct 12 16:32:39 PDT 2025

Total time taken to generate the page: 0.01304 seconds