plot_3d#
- FfdSolutionData.plot_3d(quantity='RealizedGain', quantity_format='dB10', rotation=None, output_file=None, show=True, show_as_standalone=False, pyvista_object=None, background=None, scale_farfield=None, show_beam_slider=True, show_geometry=True)#
Create a 3D polar plot of the geometry with a radiation pattern in PyVista.
- Parameters:
- quantity
str,optional Quantity to plot. The default is
"RealizedGain". Available quantities are:"RealizedGain","RealizedGain_Theta","RealizedGain_Phi","rETotal","rETheta", and"rEPhi".- quantity_format
str,optional Conversion data function. Available functions are:
"abs","ang","dB10","dB20","deg","imag","norm", and"real".- output_file
str,optional Full path for the image file. The default is
None, in which case a file is not exported.- rotation
list,optional Far field rotation matrix. The matrix contains three vectors, around x, y, and z axes. The default is
[[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]].- showbool,
optional Whether to show the plot. The default is
True.- show_as_standalonebool,
optional Whether to show a plot as standalone. The default is
False.- pyvista_object
Pyvista.Plotter,optional PyVista instance defined externally. The default is
None.- background
listorstr,optional Background color if a list is passed or background picture if a string is passed. The default is
None.- scale_farfield
list,optional List with minimum and maximum values of the scale slider. The default is
None.- show_beam_sliderbool,
optional Whether the Theta and Phi scan slider is active. The default is
True.- show_geometry
Whether to show the geometry. The default is
True.
- quantity
- Returns:
- bool or
Pyvista.Plotter Truewhen successful. ThePyvista.Plotteris returned whenshowandimage_pathareFalse.
- bool or
Examples
>>> from ansys.aedt.core >>> app = ansys.aedt.core.Hfss(version="2025.2", design="Antenna") >>> setup_name = "Setup1 : LastAdaptive" >>> frequencies = [77e9] >>> sphere = "3D" >>> data = app.get_antenna_data(setup=setup_name, sphere=sphere) >>> data.plot_3d(quantity_format="dB10")