plot_field_from_fieldplot#
- PostProcessor3D.plot_field_from_fieldplot(plot_name, project_path='', mesh_plot=False, image_format='jpg', view='isometric', plot_label='Temperature', plot_folder=None, show=True, scale_min=None, scale_max=None, plot_cad_objs=True, log_scale=True, dark_mode=False, show_grid=False, show_bounding=False, show_legend=True, plot_as_separate_objects=True, file_format='case')#
Export a field plot to an image file (JPG or PNG) using Python PyVista.
This method does not support streamlines plot.
Note
The PyVista module rebuilds the mesh and the overlap fields on the mesh.
- Parameters:
- plot_name
str
Name of the field plot to export.
- project_path
str
,optional
Path for saving the image file. The default is
""
.- mesh_plotbool,
optional
Whether to create and plot the mesh over the fields. The default is
False
.- image_format
str
,optional
Format of the image file. Options are
"jpg"
,"png"
,"svg"
, and"webp"
. The default is"jpg"
.- view
str
,optional
View to export. Options are
"isometric"
,"xy"
,"xz"
,"yz"
.- plot_label
str
,optional
Type of the plot. The default is
"Temperature"
.- plot_folder
str
,optional
Plot folder to update before exporting the field. The default is
None
, in which case all plot folders are updated.- showbool,
optional
Export Image without plotting on UI.
- scale_min
float
,optional
Fix the Scale Minimum value.
- scale_max
float
,optional
Fix the Scale Maximum value.
- plot_cad_objsbool,
optional
Whether to include objects in the plot. The default is
True
.- log_scalebool,
optional
Whether to plot fields in log scale. The default is
True
.- dark_modebool,
optional
Whether to display the model in dark mode or not. The default is
False
.- show_gridbool,
optional
Whether to display the axes grid or not. The default is
False
.- show_boundingbool,
optional
Whether to display the axes bounding box or not. The default is
False
.- show_legendbool,
optional
Whether to display the legend. The default is
True
.- plot_as_separate_objectsbool,
optional
Whether to plot each object separately, which can require more time to export from AEDT. The default is
True
.- file_format
str
,optional
File format to export the plot to. The default is
"case". Options are ``"aedtplt"
and"case"
. If the active design is a Q3D design, the file format is automatically set to"fldplt"
.
- plot_name
- Returns:
ansys.aedt.core.generic.plot.ModelPlotter
Model Object.