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

Home » Public Forums » archive » Re: write graphics to file?
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: write graphics to file? [message #4730 is a reply to message #4729] Mon, 17 July 1995 00:00 Go to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <hartman.805901825@ruund9.fys.ruu.nl>, hartman@fys.ruu.nl (Jan Willem Hartman) writes:
> Hello all,
>
> Yet another question...
> I would like to have a file dump of my IDL window, in any graphics
> format. Something like 'set_plot,'gif' will do very well.., I know
> there are lots of routines that let you write a gif/tiff/whatever file
> from an image, but what if you just have an x-y plot, and want to save
> that plot to a gif-file, without loosing a lot of information? It
> shoud also work on MS-windows version of IDL, so a 'spawn,"xwd .."'
> will not do.

This question has been answered a number of times recently, it probably belongs
in the FAQ.

IDL> plot, x, y, title = 'This is my plot'
IDL> image = tvrd()
IDL> write_gif, file, image ....

I believe this sequence works if you are on any windowing display (X, Windows,
Mac). For better speed and more flexibility, first issue the command
SET_PLOT, 'Z', /NOZ
to write to the Z-buffer pseudo-device. You can set its resolution, and its
write and readback performance is very fast.

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Contour problems...
Next Topic: Re: Errors in continental outlines

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

Current Time: Sat Oct 11 13:38:15 PDT 2025

Total time taken to generate the page: 1.20184 seconds