pastas.plotting.plots.cum_frequency#

pastas.plotting.plots.cum_frequency(obs: pandas.Series, sim: pandas.Series | None = None, ax: pastas.typing.Axes | None = None, **kwargs) pastas.typing.Axes#

Plot of the cumulative frequency of a time Series.

Parameters:
  • sim (pandas.Series) – Series with the simulated values.

  • obs (pandas.Series) – The pandas Series with the observed values.

  • ax (matplotlib.axes.Axes, optional) – Matplotlib Axes instance to create the plot on. A new Figure and Axes is created when no value for ax is provided.

  • **kwargs (dict, optional) – Optional keyword arguments, passed on to plt.subplots.

Returns:

ax

Return type:

matplotlib.axes.Axes

Examples

>>> obs = pd.Series(index=pd.date_range(start=0, periods=1000, freq="D"),
>>>                 data=np.random.normal(0, 1, 1000))
>>> ps.stats.plot_cum_frequency(obs)