pastas.plotting.plotutil.plot_series_with_gaps#
- pastas.plotting.plotutil.plot_series_with_gaps(series: pandas.Series, gap: pandas.Timedelta | None = None, ax: pastas.typing.Axes | None = None, **kwargs) pastas.typing.Axes#
Plot a pandas Series with gaps if index difference is larger than gap.
- Parameters:
series (pd.Series) – The series to plot.
gap (Timedelta | None) – Timedelta to be considered as a gap. If the difference between two consecutive index values is larger than gap, a gap is inserted in the plot. If None, the maximum value between the 95th percentile of the differences and 50 days is used as gap.
ax (Axes | None) – The axes to plot on. if None, a new figure is created.
kwargs (dict) – Additional keyword arguments that are passed to the plot method.