Re: graphic formats [message #15400] |
Fri, 14 May 1999 00:00 |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Steve Carothers wrote:
>
> Is there a way to output plots in an easily portable format such as gif or
> jpg? Currently, I can only output plots using the set_plot command, which
> gives output "formats" of postscript, Hewlett Packard graphic language, and
> others that aren't easily portable. The next best thing would be to find a
> cheap UNIX or PC program that can convert postscript to gif without losing
> resolution. Any help would be much appreciated.
>
> Steve
it may depend on the fonts that you use (I'm still working in Hershey
age), but I usually find I get better results producing a postscript
plot and then use xv (which is installed almost everywhere and should be
installed everywhere ;-) to take a screen-snapshot from ghostscript. xv
can then save gif, tiff, xpm, bmp, jpeg, etc.
Of course you need a biiiig monitor for this ;-)
Martin.
--
|||||||||||||||\\\\\\\\\\\\\-------------------///////////// //|||||||||||||||
Martin Schultz, DEAS, Harvard University, 29 Oxford St., Pierce 109,
Cambridge, MA 02138 phone (617) 496 8318 fax (617) 495 4551
e-mail mgs@io.harvard.edu web http://www-as/people/staff/mgs/
|
|
|
Re: graphic formats [message #15404 is a reply to message #15400] |
Fri, 14 May 1999 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Steve Carothers (onav1@flash.net) writes:
> I'm using PV-Wave version 6, not IDL (I assume they are not the same). Will
> your suggestion still work for PV-Wave? I'm not trying to output a picture,
> I'm trying to electronically save a plot: "plot,x,y". It's actually more
> complicated than just using the plot command, though. Thanks for the reply.
Ah, then it is even easier. All you have to learn is one
Image_Write command, not 4-5 separate commands. :-)
Cheers,
David
P.S. It might take you a couple of hours to write the PV-Wave
equivalent of XWindow. But all the pieces are available.
--
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
|
|
|
Re: graphic formats [message #15405 is a reply to message #15400] |
Fri, 14 May 1999 00:00  |
Steve Carothers
Messages: 5 Registered: March 1999
|
Junior Member |
|
|
David,
I'm using PV-Wave version 6, not IDL (I assume they are not the same). Will
your suggestion still work for PV-Wave? I'm not trying to output a picture,
I'm trying to electronically save a plot: "plot,x,y". It's actually more
complicated than just using the plot command, though. Thanks for the reply.
Steve
In article <MPG.11a55564b9904e5c9897a0@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:
> Steve Carothers (onav1@flash.net) writes:
>
>> Is there a way to output plots in an easily portable format such as gif
or
>> jpg?
>
> Of course. I recommend you become acquainted with the on-line
> help. It is truly helpful. :-)
>
> IDL> ? GIF
> IDL> ? JPEG
> IDL> ? TIFF
>
> You might also want to try my XWindow program. This
> program will allow you to display a wide variety of
> IDL graphics commands (including your own if you write
> them following a few simple rules) in a resizeable
> window. But the best part is that you can automatically
> get what you see in the window to print in GIF, JPEG,
> TIFF, and PostScript output. You can find the program
> on my web page:
>
> http://www.dfanning.com/programs/xwindow.pro
>
> I produce almost all the output you see on my web
> page from this program.
>
> XWindow, 'Shade_Surf', Dist(40), /XColors, /Output
>
> 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
|
|
|