2.10.1.1. vacumm.report.ifroco.curves – Plotting curves

Plotting maps

class Day12hFormatter(fmt, tz=None)[source]

Bases: matplotlib.dates.DateFormatter

Day formatter at 12h only

plot_curves(data, units=None, long_name=None, vmin=None, vmax=None, title=None, axes_rect=None, figsize=None, date_locator='auto', date_minor_locator='auto', date_formatter=None, hlitvs_units='ticks', savefig=None, copyright=None, logos=None, close=True, **kwargs)[source]

Plot one or several curves

Params:
  • data: Single 1D variable or a list of variables or tuples. Each tuple has its first item as a variable, and second item as plot line specification such as ‘r-‘ for red solid line.

    Warning

    All variables must have a proper long_name attribute that will be displayed in the legend if there are more than one variable.

  • units, optional: Change data units displayed in the left label.

  • long_name, optional: Name dispay in the left label.

  • title, optional: Title as a string or list of strings. It is dsipayed using add_title().

  • copyright, optional: Add a copyright (multi-)line to the plot using add_copyright().

  • logos, optional: Add logos to the plot using add_logos().

  • savefig, optional: Save the figure to this file.

  • Extra keywords are passed to the post_plot() method.

Examples:
>>> plot_curve(sst)
>>> plot_curve([sst_insitu, (sst_model, 'ob')])