plot_3d#
- SolutionData.plot_3d(curve: str = None, primary_sweep: str = 'Theta', secondary_sweep: str = 'Phi', x_label: str = '', y_label: str = '', title: str = '', formula: str | None = None, size: tuple | None = (1920, 1440), snapshot_path: str | None = None, show: bool = True)#
Create a matplotlib 3D figure based on a list of data.
- Parameters:
- curve
str Curve to be plotted. If None, the first curve will be plotted.
- primary_sweep
str,optional Primary sweep variable. The default is
"Theta".- secondary_sweep
str,optional Secondary sweep variable. The default is
"Phi".- x_label
str Plot X label.
- y_label
str Plot Y label.
- title
str Plot title label.
- formula
str,optional Mathematical formula to apply to the plot curve. The default is
None. Options are “abs”`,"db10","db20","im","mag","phasedeg","phaserad", and"re".- size
tuple,optional Image size in pixels (width, height). The default is
(2000, 1000).- snapshot_path
str,optional Full path to image file if a snapshot is needed. The default is
None.- showbool,
optional Whether if show the plot or not. Default is set to True.
- curve
- Returns:
matplotlib.figure.FigureMatplotlib figure object.