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

Home » Public Forums » archive » Re: set_plot,'PS' and accurate colors?
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: set_plot,'PS' and accurate colors? [message #33564 is a reply to message #33471] Wed, 08 January 2003 13:10 Go to previous messageGo to previous message
dave is currently offline  dave
Messages: 31
Registered: February 1994
Member
That works!

I tried that device call but kept getting syntax errors. I must have not
recompiled it when I thought I had or something, because I swear I tried
this...

Thank you!



Liam Gumley wrote:

> The METAFILE and PRINTER graphics devices both support 24-bit color. Just
> use
>
> device, true_color=24
>
> after you select the device. Note that the METAFILE graphics device is only
> available on Windows platforms.
>
> Cheers,
> Liam.
> Practical IDL Programming
> http://www.gumley.com/
>
> "dave" <knapp@rtt.colorado.edu.NOSPAM> wrote in message
> news:3E1C8321.655CD000@rtt.colorado.edu.NOSPAM...
>> I'm sorry I didn't see the response until just now.
>>
>> It's looking like IDL can't plot output graphics (PS, metafile etc) with
> more than
>> 256 colors ever, is that true?
>>
>> David Fanning wrote:
>>
>>> David Fanning (david@dfanning.com) writes:
>>>
>>>> dave (knapp@rtt.colorado.edu.NOSPAM) writes:
>>>>
>>>> > I just reduced the color depth in the plots (the range in the color
> variable)
>>>> > to less than 255 with no change in the output colors at all.
>>>> Oh, I don't think so. :-)
>>>> Can you show me how you constructed and loaded your
>>>> color table and indexed the colors?
>>>
>>> This code produces a series of rainbow colored lines both on
>>> the display and in a PostScript file.
>>>
>>> PRO Test
>>> Loadct, 13 ; Rainbow colors
>>> x =findgen(256)* 0.8/256. + .1
>>> Window, XSize=800, YSize=400
>>> for j=0,255 do plots, [x[j], x[j]], [0.1, 0.9], Color=j
>>>
>>> thisDevice = !D.Name
>>> Set_Plot, 'ps', /Copy
>>> Device, XSize=10, YSize=7, XOffset=0.5, File='test.ps', $
>>> YOffset = 10.75, /Inches, /Landscape
>>>
>>> for j=0,255 do plots, [x[j], x[j]], [0.1, 0.9], Color=j
>>>
>>> Device, /Close
>>> Set_Plot, thisDevice
>>> END
>>>
>>> Cheers,
>>>
>>> David
>>> --
>>> David W. Fanning, Ph.D.
>>> Fanning Software Consulting, Inc.
>>> Phone: 970-221-0438, E-mail: david@dfanning.com
>>> Coyote's Guide to IDL Programming: http://www.dfanning.com/
>>> Toll-Free IDL Book Orders: 1-888-461-0155
>>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: writing ascii files (with really long lines...)
Next Topic: Re: dlm returning ptr array and string array

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

Current Time: Sun Oct 12 10:43:39 PDT 2025

Total time taken to generate the page: 1.11882 seconds