plot_contour#
- ReportPlotter.plot_contour(trace=0, polar=False, levels=64, max_theta=180, color_bar=None, snapshot_path=None, show=True)#
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
Color map levels. The default is
64
.- max_theta
float
orint
,optional
Maximum theta angle for plotting. It applies only for polar plots. The default is
180
, which plots the data for all angles. Settingmax_theta
to 90 limits the displayed data to the upper hemisphere, that is (0 < theta < 90).- color_bar
str
,optional
Color bar title. The default is
None
in 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
.
- trace
- Returns:
matplotlib.pyplot.Figure
Matplotlib figure object.