xarray.Dataset.plot.scatter
xarray.Dataset.plot.scatter#
- Dataset.plot.scatter(x, y, *args, **kwargs)[source]#
Scatter plot Dataset data variables against each other.
The y DataArray will be used as base, any other variables are added as coords.
This docstring was copied from xr.DataArray.plot.scatter. Some inconsistencies may exist.
None
- Parameters
darray (
DataArray) – Must be 2 dimensional, unless creating faceted plotsx (
string, optional) – Coordinate for x axis. If None use darray.dims[1]y (
string, optional) – Coordinate for y axis. If None use darray.dims[0]hue (
string, optional) – Dimension or coordinate for which you want multiple lines plotted.figsize (
tuple, optional) – A tuple (width, height) of the figure in inches. Mutually exclusive withsizeandax.aspect (scalar, optional) – Aspect ratio of plot, so that
aspect * sizegives the width in inches. Only used if asizeis provided.size (scalar, optional) – If provided, create a new figure for the plot with the given size. Height (in inches) of each plot. See also:
aspect.ax (
matplotlib.axes.Axes, optional) – Axis on which to plot this figure. By default, use the current axis. Mutually exclusive withsizeandfigsize.row (
string, optional) – If passed, make row faceted plots on this dimension namecol (
string, optional) – If passed, make column faceted plots on this dimension namecol_wrap (
int, optional) – Use together withcolto wrap faceted plotsxscale, yscale (
'linear','symlog','log','logit', optional) – Specifies scaling for the x- and y-axes respectivelyxticks, yticks (
Specify tick locations for x-andy-axes)xlim, ylim (
Specify x-andy-axes limits)xincrease (
None,True, orFalse, optional) – Should the values on the x axes be increasing from left to right? if None, use the default for the matplotlib function.yincrease (
None,True, orFalse, optional) – Should the values on the y axes be increasing from top to bottom? if None, use the default for the matplotlib function.add_labels (
bool, optional) – Use xarray metadata to label axessubplot_kws (
dict, optional) – Dictionary of keyword arguments for matplotlib subplots. Only used for FacetGrid plots.**kwargs (optional) – Additional arguments to wrapped matplotlib function
- Returns
artist– The same type of primitive artist that the wrapped matplotlib function returns