pastas.plotting.plotly.Plotly#

class pastas.plotting.plotly.Plotly(model)#

Extension class for interactive plotly figures for pastas Models.

Examples

Register extension:

ps.extensions.register_plotly_extension()

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

Then plot and save the figure as html:

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

Methods#

plot([tmin, tmax])

Plotly version of pastas.Model.plot().

results([tmin, tmax, stderr])

Plotly version of pastas.Model.plots.results().

diagnostics()

Plotly version of pastas.Model.plots.diagnostics().