metobs_toolkit.sensordata.SensorData.pd_plot#
- SensorData.pd_plot(show_labels: list = ['ok'], **pdplotkwargs) Axes[source]#
A wrapper on the pandas.series.plot function for SensorData.
- Parameters:
show_labels (list of str, optional) – List of quality control labels to include in the plot. Records with other labels are converted to NaN to avoid interpolation artifacts. Default is [‘ok’].
**pdplotkwargs – Additional keyword arguments passed to pandas.Series.plot().
- Returns:
The axes object containing the plot.
- Return type:
matplotlib.axes.Axes
Notes
Tip: You can inspect all the present labels (and their counts) by using: sensordata.df[‘label’].value_counts().
The plot excludes records that don’t match the specified labels by converting them to NaN rather than subsetting, which prevents unwanted interpolation between valid data points.