plot#

ModelPlotter.plot(export_image_path: str = None, show: bool = True) bool#

Plot the current available Data. With s key a screenshot is saved in export_image_path or in tempdir.

Parameters:
export_image_pathstr, optional

Path to image to save. Default is None

showbool, optional

Whether to display the pyvista plot. When False, a :class::pyvista.Plotter object is created and assigned to the pv property so that it can be modified further. Default is True.

Returns:
bool

Examples

>>> from ansys.aedt.core.visualization.plot.pyvista import ModelPlotter
>>> obj = ModelPlotter()
>>> obj.plot(export_image_path="example.png", show=True)