CADETProcess.solution.SolutionIO.plot_purity

CADETProcess.solution.SolutionIO.plot_purity#

SolutionIO.plot_purity(start=None, end=None, components=None, layout=None, y_max=None, plot_components_purity=True, plot_species_purity=False, alpha=1, hide_labels=False, show_legend=True, ax=None)[source]#

Plot local purity for each component of the concentration profile.

Parameters:
startfloat, optional

Start time for plotting. The default is 0.

endfloat, optional

End time for plotting.

componentslist, optional.

List of components to be plotted. If None, all components are plotted. Note that if components are excluded, they will also not be considered in the calculation of the purity.

layoutplotting.Layout

Plot layout options.

y_maxfloat, optional

Maximum value of y axis. If None, value is automatically deferred from solution.

plot_components_puritybool, optional

If True, plot purity of total component concentration. The default is True.

plot_species_puritybool, optional

If True, plot purity of individual species. The default is False.

alphafloat, optional

Opacity of line.

hide_labelsbool, optional

If True, hide labels. The default is False.

show_legendbool, optional

If True, show legend. The default is True.

axAxes

Axes to plot on.

Returns:
axAxes

Axes with plot of purity over time.

Raises:
CADETProcessError

If solution has less than 2 components.

See also

slice_solution
plotlib
plot