metobs_toolkit.dataset.Dataset.make_plot_of_modeldata#
- Dataset.make_plot_of_modeldata(obstype: str = 'temp', colormap: dict | None = None, title: str | None = None, linestyle: str = '--', ax: Axes | None = None, figkwargs: dict = {}) Axes[source]#
Generate a timeseries plot of model data for a specific observation type.
- Parameters:
obstype (str, optional) – The type of observation to plot (e.g., “temp”) modeldata for, by default “temp”.
colormap (dict | None, optional) – The colormap for the lines per stationname. The keys must be the names of the stations, and the values the color. If None, a default color map is used.
title (str or None, optional) – The title of the plot. If None, a default title is generated, by default None.
linestyle (str, optional) – The style of the line in the plot, by default “–“.
ax (matplotlib.axes.Axes, optional) – The axes on which to plot. If None, a new axes object is created.
figkwargs (dict, optional) – Additional keyword arguments passed to matplotlib.pyplot.subplots(), by default an empty dictionary.
- Returns:
The axes object containing the plot.
- Return type:
matplotlib.axes.Axes