OK, I'm stumped [message #11992] |
Sat, 20 June 1998 00:00 |
William H Dorin IV
Messages: 5 Registered: June 1998
|
Junior Member |
|
|
<HTML>
I'm rather new to IDL, and have been having trouble with what is probably
a trivial question (I have, however, read the faq, help files, and class
manual). The problem is as follows:
<P>I have a proceedure which reads in a 180*360 array of data and creates
a nice color contour plot, then plots a few points and some text (with
underwritten white test for visibility), then plots it to a XWindows screen,
and saves it to a gif file. My problem is that I cannot seem to figure
out how to save this file to a postscript format.
<P> I've been using XV to port each gif to ps, so I can
print these plots on the color postscript printer we have, but this is
becoming an unsatisfactory method.
<BR> So, I modified my code as follows:
<P>Set_plot, 'PS'
<BR>Device, /color, file='my_plot.ps'
<P>map_set
<BR>contour, my data
<BR>xyouts, 'text' (several of these)
<BR>plots, some points
<P>set_plot, 'X'
<P>This generates an unreadable file. If I leave off the /color keyword
in device, a readable file is generated, but is not in color, not in portrait
format, is not set correctly and cut off by the window, and the text is
not placed correctly and is overwritten. I've also tried the /encapsulated
keyword, but this seems to be of no help also.
<P>I would really appreciate any help you (collective) can offer.
I know this must seem like a walk in the park to experienced IDLers, but
I can't seem to make any headway whatsoever. Furthermore, the online
help is pretty bad in regard to this sort of thing.
<P>Thanks,
<BR>Wm.
<PRE>--
****************************
William H Dorin IV
NIS-1, LANL &n bsp;
505-665-7682</PRE>
</HTML>
|
|
|