Skip to content

plot.serialization_matplotlib

Serialization of Figure object to matplotlib.

MatplotlibFigureSerializer

Serializer for figures to matplotlib.

to_figure classmethod

to_figure(experiment, figure, settings=None)

Convert sbmlsim.Figure to matplotlib figure.

Parameters:

Name Type Description Default
experiment Any

the experiment the data of the figure is read from, whose figure_settings override the settings of the run.

required
figure Figure

the figure.

required
settings FigureSettings | Mapping[str, Any] | None

the settings of the run, a FigureSettings or overrides of the defaults, which the settings of the experiment and of the figure override, see Figure.resolved_settings.

None

Returns:

Type Description
Figure

The matplotlib figure.