animate_fields_from_aedtplt#
- PostProcessorIcepak.animate_fields_from_aedtplt(plot_name: str, plot_folder: str = None, variation_variable: str = 'Phase', variations: list[str] = ['0deg'], project_path: str = '', export_gif: bool = False, show: bool = True, dark_mode: bool = False, show_bounding: bool = False, show_grid: bool = False) ModelPlotter#
Generate a field plot to an image file (JPG or PNG) using PyVista.
Note
The PyVista module rebuilds the mesh and the overlap fields on the mesh.
- Parameters:
- plot_name
str Name of the plot or the name of the object.
- plot_folder
str,optional Name of the folder in which the plot resides. The default is
None.- variation_variable
str,optional Variable to vary. The default is
"Phase".- variations
list,optional List of variation values with units. The default is
["0deg"].- project_path
stror :class:’pathlib.Path’,optional Path for the export. The default is
"", in which case the file is exported to the working directory.- export_gifbool,
optional Whether to export the GIF file. The default is
False.- showbool,
optional Generate the animation without showing an interactive plot. 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.
- plot_name
- Returns:
ansys.aedt.core.generic.plot.ModelPlotterModel Object.