pastas.plotting.bokeh.Bokeh#

class pastas.plotting.bokeh.Bokeh(model)#

Extension class for interactive bokeh figures for pastas Models.

Notes

The bokeh extension is registered in the Model class by calling the register_bokeh() function. To work in Juptyer notebooks, the bokeh.io.output_notebook() function should be called before plotting. The bokeh extension is not registered by default, and should be called explicitly. Check the bokeh documentation for more information on how to interact with the plots.

Examples

Register extension::

ps.extensions.register_bokeh()

INFO: Registered bokeh plotting methods in Model class, e.g. ml.bokeh.plot().

Then plot and save the figure as html:

fig = ml.bokeh.results()
fig.write_html("results_figure.html")

Methods#

plot([tmin, tmax, height, width, show_plot])

Plot the observations and model simulation.

results([tmin, tmax, height, width, show_plot, stderr])

Overview of the results of the pastas model.