pastas.plots.cum_frequency#

cum_frequency(obs, sim=None, ax=None, figsize=(5, 2))[source]#

Plot of the cumulative frequency of a time series.

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

  • obs (pandas.Series) – 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

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)