pastas.plotting.plotutil.plot_series_with_gaps ============================================== .. py:function:: 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. :param series: The series to plot. :type series: pd.Series :param gap: 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. :type gap: Timedelta | float :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 !!