oceanspy.plot.time_series

oceanspy.plot.time_series(od, varName, meanAxes=False, intAxes=False, cutout_kwargs=None, **kwargs)[source]

Plot time series.

Parameters
od: OceanDataset

oceandataset used to plot.

varName: str, None

Name of the variable to plot.

meanAxes: 1D array_like, str, or bool

List of axes over which to apply oceanspy.compute.weighted_mean(). If True, set meanAxes= oceanspy.OceanDataset.grid_coords. If False, skip weighted mean.

intAxes: 1D array_like, str, or bool

List of axes over which to apply oceanspy.compute.integral(). If True, set intAxes= oceanspy.OceanDataset.grid_coords. If False, skip integral.

cutout_kwargs: dict

Keyword arguments for oceanspy.subsample.cutout()

**kwargs:

Kewyword arguments for xarray.plot.line()

Returns
ax: matplotlib.pyplot.axes

Axes object.

References

http://xarray.pydata.org/en/stable/generated/xarray.plot.line.html#xarray.plot.line