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.1c (
str, optional) – Color of the markers. Seematplotlib.colorsfor available options.marker (
str, optional) – Marker style. Seematplotlib.markersfor available options.alpha (
float, optional) – Marker alpha value. Must be between0and1.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 asvminfor 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_scaleis 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,
cis overriden if set.