pastas.plotting.plotutil.plot_series_with_gaps#
- pastas.plotting.plotutil.plot_series_with_gaps(series: pandas.Series, gap: pandas.Timedelta | float = np.inf, 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 | float) – Timedelta or float (in days) 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. Default is infinity.
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.