Warning: include_once(analyticstracking.php): Failed to open stream: No such file or directory in /Library/WebServer/Documents/tutorials/idl_tips/idljpg.php on line 27

Warning: include_once(): Failed opening 'analyticstracking.php' for inclusion (include_path='.:/usr/local/Cellar/php/8.2.12/share/php/pear') in /Library/WebServer/Documents/tutorials/idl_tips/idljpg.php on line 27
header photo

Exoplanets

Yale Astronomy

Interactive Data Language (IDL)

IDL Resources >> Helpful Tips

Making an IDL graph into a JPG/JPEG file

How to save an IDL plot as a jpeg file:

If you want to save a plot from IDL as a JPEG, after you made your plot in IDL you can type the following:

IDL> im=tvrd() ;im is an array
IDL> write_jpeg,'filename.jpeg',im

You can then exit IDL, and in the directory you want to save the file, type:

xv filename.jpeg

Now your plot is saved as a JPEG file.

 

Return to IDL Resources >> Helpful Tips