Contents - Index
The $ExportPlot plot provides a simple way to save a specified plot to a file. The plot is saved after calculations are completed. The format of the $ExportPlot directive is
$ExportPlot FileName PlotName /R=N
FileName is the name of the file that the plot will be saved to. The format of the graphics file is determined by the file name extension, which can be .bmp, .JPG, .TIF, .GIF, or .EMF. These file name extensions correspond to graphics files of type Bitmap, JPEG (Joint Photographic Experts Group) , Tagged Information File Format (TIFF) , Graphics Interchange Format (GIF), and Enhanced Meta file (EMF), respectively. Filename can be a string constant (enclosed in single quotes) or a string variable that has been previously set to the name of the file. The path name can be included, but if it is not, the file will be saved to the current directory.
PlotName is the name of the plot as it appears on the tab of the plot window. PlotName can be a string constant (within single quotes) or a string variable that has been set to the name of the plot. Alternatively, PlotName can be an integer, e.g., 2. In this case EES will set PlotName to be the name of the plot in with this integer position in the plot window. The command will be ignored if the plot window does not exist.
The /R option controls the resolution of the plot. This parameter is optional. If it is supplied, N must be an integer between 0 and 4. The values of N have the following meaning.
0 the plot will be saved with the default resolution.
1 the plot will be saved at the screen resolution (100 pixels per inch)
2 the plot will be saved at 300 pixels per inch
3 the plot will be saved at 600 pixels per inch
4 the plot will be saved at 1200 pixels per inch.
$ExportPlot 'C:\temp\myplot.jpg' 1
See also: $Export