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 plots

  • x (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 with size and ax.

  • aspect (scalar, optional) – Aspect ratio of plot, so that aspect * size gives the width in inches. Only used if a size is 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 with size and figsize.

  • row (string, optional) – If passed, make row faceted plots on this dimension name

  • col (string, optional) – If passed, make column faceted plots on this dimension name

  • col_wrap (int, optional) – Use together with col to wrap faceted plots

  • xscale, yscale ('linear', 'symlog', 'log', 'logit', optional) – Specifies scaling for the x- and y-axes respectively

  • xticks, yticks (Specify tick locations for x- and y-axes)

  • xlim, ylim (Specify x- and y-axes limits)

  • xincrease (None, True, or False, 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, or False, 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 axes

  • subplot_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