plot_contour#
- ReportPlotter.plot_contour(trace: int = 0, polar: bool = False, levels: int = 64, max_theta: int = 360, min_theta: int = 0, color_bar=None, snapshot_path=None, show: bool = True, figure=None, is_spherical: bool = True, normalize=None)#
Create a Matplotlib figure contour based on a list of data.
- Parameters:
- trace
int,str,optional Trace index on which create the 3D Plot.
- polarbool,
optional Generate the plot in polar coordinates. The default is
True. IfFalse, the plot generated is rectangular.- levels
int,optional Number of color map levels. The default is
64.- max_theta
floatorint,optional Maximum theta angle for plotting polar data. The default is
360.- min_theta
floatorint,optional Minimum theta angle for plotting polar data. The default is
0.- color_bar
str,optional Color bar title. The default is
Nonein which case the color bar is not included.- snapshot_path
str,optional Full path to image file if a snapshot is needed. The default value is
None.- showbool,
optional Whether to show the plot or return the matplotlib object. Default is
True.- figure
matplotlib.pyplot.Figure,optional An existing Matplotlib Figure to which the plot is added. If not provided, a new Figure and Axes object are created.
- is_sphericalbool,
optional Whether to use spherical or cartesian data.
- normalize
list,optional Normalize the color scale using the provided
[vmin, vmax]values. If not provided or invalid, automatic normalization is applied.
- trace
- Returns:
matplotlib.pyplot.FigureMatplotlib figure object.