| Re: set_plot,'PS' and accurate colors? [message #33505 is a reply to message #33479] |
Tue, 07 January 2003 12:38   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
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
|
|
|
|