petab.visualize.plotting_config

Plotting config

Functions

plot_lowlevel(plot_spec, ax, conditions, ms, …) Plotting routine / preparations: set properties of figure and plot the data with given specifications (lineplot with errorbars, or barplot)
square_plot_equal_ranges(ax, lim, Tuple, …) Square plot with equal range for scatter plots
petab.visualize.plotting_config.plot_lowlevel(plot_spec: pandas.core.series.Series, ax: matplotlib.pyplot.Axes, conditions: pandas.core.series.Series, ms: pandas.core.frame.DataFrame, plot_sim: bool) → matplotlib.pyplot.Axes

Plotting routine / preparations: set properties of figure and plot the data with given specifications (lineplot with errorbars, or barplot)

Parameters:
  • plot_spec – contains defined data format (visualization file)
  • ax – axes to which to plot
  • conditions – Values on x-axis
  • ms – contains measurement data which should be plotted
  • plot_sim – tells whether or not simulated data should be plotted as well
Returns:

Updated axis object.

petab.visualize.plotting_config.square_plot_equal_ranges(ax: matplotlib.pyplot.Axes, lim: Union[List[T], Tuple, None] = None) → matplotlib.pyplot.Axes

Square plot with equal range for scatter plots

Returns:Updated axis object.