ColorPlot¶
-
class
nata.plots.types.
ColorPlot
(label: Optional[str] = None, data: nata.plots.data.PlotData = None, axes: Any = None, vmin: Optional[float] = None, vmax: Optional[float] = None, cb_map: Optional[str] = 'rainbow', cb_scale: Optional[str] = 'linear', cb_linthresh: Optional[float] = 1e-05, cb_title: Optional[str] = None, interpolation: Optional[str] = 'none')¶ Color plot class.
- Parameters
vmin (
float
, optional) – Minimum of the colorbar axis. If not provided, it is inferred from the dataset represented in the plot.vmax (
float
, optional) – Same asvmin
for the maximum of the colorbar axis.cb_title (
str
, optional) – Colorbar title. If not provided, it is inferred from the dataset represented in the plot.cb_scale (
{'linear','log', 'symlog'}
, optional) – Scale of the colorbar. If not provided, defaults to'linear'
.cb_map (
str
, optional) – Colormap used to represent the data. Seematplotlib.pyplot.colormaps()
for available options. If not provided, defaults torainbow
.cb_linthresh (
float
, optional) – Range within which the colorbar axis is linear. Applicable only whencb_scale
is set to'symlog'
. If not provided, defaults to1e-5
.interpolation (
str
, optional) – Interpolation method used. Seematplotlib.pyplot.imshow()
for available options. If not provided, defaults tonone
.