metobs_toolkit.station.Station.make_plot_of_modeldata#
- Station.make_plot_of_modeldata(obstype: str = 'temp', modelname: str | None = None, modelvariable: str | None = None, linecolor: str | None = None, title: str | None = None, linestyle: str = '--', ax: None | Axes = None, figkwargs: dict = {}) Axes[source]#
Generate a time series plot of model data for a specific observation type.
- Parameters:
obstype (str, optional) – The type of observation to plot model data for, by default “temp”.
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.
linecolor (str or None, optional) – The color of the line in the plot. 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