petab.v1.visualize.plotter
PEtab visualization plotter classes
Classes
|
Matplotlib wrapper |
|
Plotter abstract base class. |
|
Seaborn wrapper. |
- class petab.v1.visualize.plotter.MPLPlotter(figure: Figure, data_provider: DataProvider)[source]
Bases:
Plotter
Matplotlib wrapper
- generate_barplot(ax: Axes, dataplot: DataPlot, plotTypeData: str) None [source]
Generate barplot.
- Parameters:
ax – Axis object.
dataplot – Visualization settings for the plot.
plotTypeData – Specifies how replicates should be handled.
- generate_figure(subplot_dir: str | None = None, format_: str = 'png') dict[str, Axes] | None [source]
Generate the full figure based on the markup in the figure attribute.
- Parameters:
subplot_dir – A path to the folder where single subplots should be saved. PlotIDs will be taken as file names.
format – File format for the generated figure. (See
matplotlib.pyplot.savefig()
for supported options).
- Returns:
ax – Axis object of the created plot.
None – In case subplots are saved to file.
- generate_lineplot(ax: Axes, dataplot: DataPlot, plotTypeData: str, splitaxes_params: dict) tuple[Axes, Axes] [source]
Generate line plot.
It is possible to plot only data or only simulation or both.
- Parameters:
ax – Axis object.
dataplot – Visualization settings for the plot.
plotTypeData – Specifies how replicates should be handled.
splitaxes_params
- class petab.v1.visualize.plotter.Plotter(figure: Figure, data_provider: DataProvider)[source]
Bases:
ABC
Plotter abstract base class.
- figure
Figure instance that serves as a markup for the figure that should be generated
- data_provider
Data provider
- class petab.v1.visualize.plotter.SeabornPlotter(figure: Figure, data_provider: DataProvider)[source]
Bases:
Plotter
Seaborn wrapper.