pybop.plotting.plot_problem#

Functions#

quick_plot(problem[, problem_inputs, show])

Quickly plot the target dataset against optimised model output.

Module Contents#

pybop.plotting.plot_problem.quick_plot(problem, problem_inputs: pybop.parameters.parameter.Inputs = None, show=True, **layout_kwargs)[source]#

Quickly plot the target dataset against optimised model output.

Generates an interactive plot comparing the simulated model output with an optional target dataset and visualises uncertainty.

Parameters:
  • problem (object) – Problem object with dataset and signal attributes.

  • problem_inputs (Inputs) – Optimised (or example) parameter values.

  • show (bool, optional) – If True, the figure is shown upon creation (default: True).

  • **layout_kwargs (optional) – Valid Plotly layout keys and their values, e.g. xaxis_title=”Time / s” or xaxis={“title”: “Time / s”, “titlefont_size”: 18}.

Returns:

The Plotly figure object for the scatter plot.

Return type:

plotly.graph_objs.Figure