ExportPlotImageWithViewToFile [Reporter]

Exports a field plot image to a specified file.

Note:

This script replaces ExportPlotImageToFile, which is deprecated.

UI Access N/A
Parameters
Name Type Description
<FileName> String Full path of file to export.
<PlotQuantityName> String Name of quantity to plot.
<PlotItemName> String Name of fields to plot.
<PixelSizeX> Integer Desired image width, in pixels.
<PixelSizeY> Integer Desired image height, in pixels.
<ViewOrientation> String Optional. Name of orientation to use for plot.
Return Value Image file is exported to the specified path.

 

Python Syntax

ExportPlotImageWithViewToFile(<FileName>, <PlotQuantityName>, <PlotItemName>, <PixelSizeX>, <PixelSizeY>, <ViewOrientation>)

Python Example

oModule.ExportPlotImageWithViewToFile("E:/MyDir/OptimToutput/magE2.gif", "E Field",

"Mag_E2", 1920, 1080, "newot2")