spectrochempy.plot_merit#

plot_merit(analysis_object, X=None, X_hat=None, index=None, *, ax=None, clear=True, title=None, show_yaxis=True, show=True, output=None, **kwargs)[source]#

Plot merit for an analysis object.

Delegates rendering to plot_compare().

Parameters:
  • index (int or iterable of int, optional) – Restricts the plot to one reconstruction, or to one figure per value when an iterable is given. With no index, every reconstruction is overlaid on a single axes.

  • output (str or pathlib.Path, optional) – File name where the completed merit plot is saved. It cannot be combined with an iterable of index values, because each index is rendered in its own figure; pass one output per index in that case.

  • **kwargs – Other parameters, such as ax, clear, title, show_yaxis, and show, are passed to plot_compare().

See also

plot_compare

Standalone two-dataset comparison plot.