pastas.plotting.plots.cum_frequency#
- pastas.plotting.plots.cum_frequency(obs: pandas.Series, sim: pandas.Series | None = None, ax: pastas.typing.Axes | None = None, figsize: tuple = (5, 2)) 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.
figsize (tuple, optional) – 2-D Tuple to determine the size of the figure created. Ignored if ax is also provided.
- Returns:
ax
- Return type:
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)