pastas.plotting.plotutil.plot_series_with_gaps ============================================== .. py:function:: 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. :param series: The series to plot. :type series: pd.Series :param gap: 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. :type gap: Timedelta | None :param ax: The axes to plot on. if None, a new figure is created. :type ax: Axes | None :param kwargs: Additional keyword arguments that are passed to the plot method. :type kwargs: dict .. !! processed by numpydoc !!