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

Home » Public Forums » archive » Re: color postscript files
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: color postscript files [message #12047 is a reply to message #12029] Fri, 12 June 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Beverly Smith (beverly@casa.colorado.edu) writes:

> how does one make color postscript files in IDL?

Pretty much exactly like you make color displays: by
loading and using a color table.

TVLct, [0, 255, 0], [0, 0, 255], [255, 0, 0], 1; Blue, Red, Green
data = Findgen(10)
moredata = Reverse(data)
thisDevice = !D.Name
Set_Plot, 'PS', /Copy ; Copy the color table into PS file.
Device, /Color, Bits_per_Pixel=8 ; Set up device for color output.
Plot, data, Color=3, /NoData ; Axes in green.
OPlot, data, Color=1 ; Data in blue.
OPlot, moredata, Color=2 ; More data in red.
Device, /Close
Set_Plot, thisDevice

You can find a number of articles about PostScript files
on my web page and in my IDL Programming Techniques book.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: odd behavior of loadct
Next Topic: Re: Friendly floating point slider

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

Current Time: Sun Oct 12 05:49:54 PDT 2025

Total time taken to generate the page: 0.56031 seconds