AS OF 2020 Sep (and I believe much earlier), using the graphics displayer EVINCE automatically puts filename on banner, and furthermore the following did not work with other viewers. Therefore consider the following to be “deprecated” (withdrawn) –jmw
To actually use evince from the command line, type evince <filename> &
To actually use evince in a nautilus file manager, select (click on) the desired file, and go to
file>>open with>>evince
Commonly when one prints plots to a postscript from IDL and open it with evince(as we always do), the banner of the evince window perennially shows “Graphics Produced By IDL”, which is not helpful at all especially when you’re plotting a thousand plots and trying to compare them.
Hence a pair of IDL routines (OPENPS and CLOSEPS )can be called now to make the output PS file display the file name at the banner and to make the plotting to file process slightly less complicated. The way to call them is as follows:
OPENPS, blablabla.ps //Before you plot anything. This will set the output device to blablabla.ps and by default color plot
[ DEVICE, FONT_SIZE=9] //This is the optional part if you want anything about the graph beyond color, see IDL documentation on DEVICE for more
//information. Note that you may overwrite the color attribute here by saying DEVICE,/COLOR=PS
plot,bla
overplot.bla //Plot and add labels and do whatever as you like
CLOSEPS //When you’re done with one graph, simply call CLOSEPS, it will save the file for you and set the plotting device back to xwindows
WARNING: DO CLOSEPS BEFORE YOU OPENPS A NEW FILE. IN OTHER WORDS, EACH PLOT FILE MUST BE ENCLOSED BY A PAIR OF
OPENPS-CLOSEPS statement.
For more information, the code locates at /usr/share/astro/idlshare/locallib, or email huangy@carleton.edu.
-yuping