plopp.scatter#
- plopp.scatter(obj, *, x='x', y='y', size=None, figsize=None, norm='linear', title=None, vmin=None, vmax=None, cbar=False, cmap='viridis', **kwargs)[source]#
Make a two-dimensional scatter plot.
New in version 24.04.0.
- Parameters:
obj (
Union
[Variable
,DataArray
,Dataset
,DataGroup
,ndarray
,Node
,Dict
[str
,Union
[Variable
,DataArray
,Dataset
,DataGroup
,ndarray
,Node
]]]) – The object to be plotted.x (
str
, default:'x'
) – The name of the coordinate that is to be used for the X positions.y (
str
, default:'y'
) – The name of the coordinate that is to be used for the Y positions.size (
Union
[str
,float
,None
], default:None
) – The size of the marker. If a float is supplied, all markers will have the same size. If a string is supplied, it will be the name of the coordinate that is to be used for the size of the markers.figsize (
Optional
[Tuple
[float
,float
]], default:None
) – The width and height of the figure, in inches.norm (
Literal
['linear'
,'log'
], default:'linear'
) – Set to'log'
for a logarithmic colorscale (only applicable ifcbar
isTrue
).vmin (
Union
[Variable
,int
,float
,None
], default:None
) – Lower bound for the colorscale for (only applicable ifcbar
isTrue
).vmax (
Union
[Variable
,int
,float
,None
], default:None
) – Upper bound for the colorscale for (only applicable ifcbar
isTrue
).cbar (
bool
, default:False
) – Show colorbar ifTrue
. Ifcbar
isTrue
, the marker will be colored using the data values in the supplied data array.cmap (
str
, default:'viridis'
) – The colormap to be used for the colorscale.**kwargs – All other kwargs are forwarded the underlying plotting library.
- Return type:
FigureLike