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 = {}, modelname: str | None = None, modelvariable: str | None = None) 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.
modelname (str, optional) – The model name to filter by when multiple model data sources exist for the same observation type. If None, no filtering by model name is applied. The default is None.
modelvariable (str, optional) – The model variable to filter by when multiple model variables exist for the same observation type and model. If None, no filtering by model variable is applied. The default is None.
- Returns:
The axes object containing the plot.
- Return type:
matplotlib.axes.Axes