xarray.plot.line¶
-
xarray.plot.
line
(darray, *args, **kwargs)¶ Line plot of DataArray index against values
Wraps
matplotlib.pyplot.plot()
Parameters: darray : DataArray
Must be 1 dimensional
figsize : tuple, optional
A tuple (width, height) of the figure in inches. Mutually exclusive with
size
andax
.aspect : scalar, optional
Aspect ratio of plot, so that
aspect * size
gives the width in inches. Only used if asize
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 object, optional
Axis on which to plot this figure. By default, use the current axis. Mutually exclusive with
size
andfigsize
.hue : string, optional
Coordinate for which you want multiple lines plotted (2D DataArrays only).
x, y : string, optional
Coordinates for x, y axis. Only one of these may be specified. The other coordinate plots values from the DataArray on which this plot method is called.
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_legend : boolean, optional
Add legend with y axis coordinates (2D inputs only).
*args, **kwargs : optional
Additional arguments to matplotlib.pyplot.plot