ocean_model_skill_assessor.plot.line#

Time series plots.

Functions

plot(obs, model, xname, yname[, title, ...])

Plot time series or CTD profile.

ocean_model_skill_assessor.plot.line.plot(obs, model, xname, yname, title=None, xlabel=None, ylabel=None, model_label='Model', figname='figure.png', dpi=100, figsize=(15, 5), return_plot=False, **kwargs)[source]#

Plot time series or CTD profile.

Use for featuretype of timeSeries or profile. Plot obs vs. model as time series line plot or CTD profile.

Parameters:
  • obs (DataFrame, Dataset) – Observation time series

  • mode (Dataset) – Model time series to compare against obs

  • xname (str) – Name of variable to plot on x-axis when interpreted with cf-xarray and cf-pandas

  • yname (str) – Name of variable to plot on y-axis when interpreted with cf-xarray and cf-pandas

  • title (str, optional) – Title for plot.

  • xlabel (str, optional) – Label for x-axis.

  • ylabel (str, optional) – Label for y-axis.

  • figname (str) – Filename for figure (as absolute or relative path).

  • dpi (int, optional) – dpi for figure. Default is 100.

  • figsize (tuple, optional) – Figsize to pass to plt.figure(). Default is (15,5).

  • return_plot (bool) – If True, return plot. Use for testing.