ScatterPlot¶
-
class
nata.plots.types.
ScatterPlot
(label: Optional[str] = None, data: nata.plots.data.PlotData = None, axes: Any = None, s: Optional[float] = 0.1, c: Optional[str] = None, marker: Optional[str] = None, alpha: Optional[float] = 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)¶ Color plot class.
- Parameters
s (
float
, optional) – Marker size in in points**2. If not provided, defaults to0.1
c (
str
, optional) – Color of the markers. Seematplotlib.colors
for available options.marker (
str
, optional) – Marker style. Seematplotlib.markers
for available options.alpha (
float
, optional) – Marker alpha value. Must be between0
and1
.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
.
Notes
All colorbar parameters are only applicable if the dataset represented in the plot has a quantity to be represented in color. In this case,
c
is overriden if set.