plot#
- Q2d.plot(assignment=None, show=True, output_file=None, plot_as_separate_objects=True, plot_air_objects=True, force_opacity_value=None, clean_files=False, view='isometric', show_legend=True, dark_mode=False, show_grid=False, show_bounding=False)[source]#
Plot the model or a subset of objects.
- Parameters:
- assignment
list
,optional
List of objects to plot. The default is
None
, in which case all objects are exported.- showbool,
optional
Whether to show the plot after generation. The default is
True
. IfFalse
, the generated class is returned for more customization before plot generation.- output_file
str
,optional
Output file path to save the image to. If
None
no image will be saved.- plot_as_separate_objectsbool,
optional
Whether to plot each object separately. The default is
True
, which may require more time to export from AEDT.- plot_air_objectsbool,
optional
Whether to also plot air and vacuum objects. The default is
True
.- force_opacity_value
float
,optional
Opacity value between 0 and 1 to applied to all the models. The default is
None
, which means the AEDT opacity is applied to each object.- clean_filesbool,
optional
Whether to clean created files after plot generation. The default is
False
, which means that the cache is maintained in the model object that is returned.- view
str
,optional
View to export. Options are
"isometric"
,"xy"
,"xz"
,"yz"
. The default is"isometric"
.- show_legendbool,
optional
Whether to display the legend or not. 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
.
- assignment
- Returns:
ansys.aedt.core.generic.plot.ModelPlotter
Model Object.