environmentaltools.graphics.cadency
- environmentaltools.graphics.cadency(data, label='', ax=None, legend=False, fname=None)[source]
Plot temporal differences (cadency) of time series.
Displays the time intervals between consecutive data points to identify gaps or irregular sampling in the time series.
- Parameters:
data (pd.DataFrame) – Time series with datetime index.
label (str) – Label for the plotted line. Defaults to “”.
ax (matplotlib.axes.Axes, optional) – Axis for the plot. Creates new if None. Defaults to None.
legend (bool) – If True, displays legend. Defaults to False.
fname (str, optional) – File path to save the plot. If None, displays interactively. Defaults to None.
- Returns:
The axis with the plot.
- Return type:
matplotlib.axes.Axes