Re: PostScript and pixmap [message #25878] |
Thu, 26 July 2001 08:16  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
Why do you need to place the pixmap into a PS plot? Can you just set the
plotting device (using SET_PLOT) to PS and re-plot your data? If you put
your plotting commands in a subroutine you could easily save it in all sorts
of formats by using SET_PLOT and DEVICE and calling your plotting routine.
If you NEED to do it the hard way, you do something like this:
image = TVRD()
SET_PLOT, 'PS'
DEVICE, filename='plot.ps'
TV, image
DEVICE, /CLOSE
There are a lot of details I left out but this should get you started.
If you are new to PS output with IDL I suggest David Fanning's IDL book.
You might also want to check out Liam Gumley's new book too. Both are
available thru Amazon.
-Rick Towler
<lalassne@Mines.EDU> wrote in message
news:Pine.A41.4.33.0107251802370.98512-100000@slate.Mines.ED U...
> I am trying to take a plot that I have created and make it so that the
> user can save it in several formats. I was hoping to include Post script
> the plot has been put into a pixmap window
>
>
> - Lisa A. Lassner
>
>
> ------------------------------------------------------------ --------------
-----
> "We cannot do great things on this earth. We can only do small things
> with great love."
>
> -Mother Teresa
>
|
|
|
Re: PostScript and pixmap [message #25966 is a reply to message #25878] |
Thu, 26 July 2001 21:01  |
david[2]
Messages: 100 Registered: June 2001
|
Senior Member |
|
|
Rick Towler writes:
>
> If you are new to PS output with IDL I suggest David Fanning's IDL book.
> You might also want to check out Liam Gumley's new book too. Both are
> available thru Amazon.
I've been waiting in vain for someone to mention
PSConfig, the best program I've ever written, but
alas Ben Tupper and Martin Schultz are the only
ones I know who use it. :-(
But PSConfig will solve *all* your PostScript
problems, I personally guarantee it. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|