pastas.modelplots.Plotting.plot#

Plotting.plot(tmin=None, tmax=None, oseries=True, simulation=True, ax=None, figsize=None, legend=True, **kwargs)[source]#

Make a plot of the observed and simulated series.

Parameters
  • tmin (str or pandas.Timestamp, optional) –

  • tmax (str or pandas.Timestamp, optional) –

  • oseries (bool, optional) – True to plot the observed time series.

  • simulation (bool, optional) – True to plot the simulated time series.

  • ax (matplotlib.axes.Axes, optional) – Axes to add the plot to.

  • figsize (tuple, optional) – Tuple with the height and width of the figure in inches.

  • legend (bool, optional) – Boolean to determine to show the legend (True) or not (False).

Returns

ax – matplotlib axes with the simulated and optionally the observed time series.

Return type

matplotlib.axes.Axes

Examples

>>> ml.plot()