pastas.plotting.bokeh.Bokeh.plot#
- pastas.plotting.bokeh.Bokeh.plot(tmin=None, tmax=None, height=300, width=600, show_plot=True)#
Plot the observations and model simulation.
- Parameters:
tmin (pandas.Timestamp or str, optional) – A string or pandas.Timestamp with the start date for the period (E.g. ‘1980-01-01 00:00:00’). Strings are converted to pandas.Timestamp internally. start time for model simulation, by default None
tmax (pandas.Timestamp or str, optional) – A string or pandas.Timestamp with the end date for the period (E.g. ‘2020-01-01 00:00:00’). Strings are converted to pandas.Timestamp internally. end time for model simulation, by default None
height (int, optional) – height of the plot, by default 500
width (int, optional) – width of the plot, by default 800
show_plot (bool, optional) – Show the plot (i.e., in Jupyter Notebooks), by default True
- Returns:
p – Bokeh figure with the observations and model simulation.
- Return type:
bokeh.plotting.figure
Examples
>>> ps.extensions.register_bokeh() INFO: Registered bokeh plotting methods in Model class, e.g. `ml.bokeh.plot()`. >>> >>> fig = ml.bokeh.plot()