mescla.plotting.diagrams.plot_uspace

mescla.plotting.diagrams.plot_uspace(model, endmembers=None, components=(0, 1), ax=None, theme='light', show_hull=True)[source]

The mixing diagram: samples and candidate end-members in U-space.

The figure that decides whether a conceptual model is viable. Samples should fall inside the polygon spanned by the end-members; those outside cannot be explained by any non-negative mixture, and say a source is missing or a reaction is at work.

Parameters:
  • model (EMMA) – A fitted model.

  • endmembers (EndMembers, optional) – Candidates to project in and, if show_hull, to join into a hull.

  • components (tuple of int, default (0, 1)) – Which two components to plot.

  • ax (matplotlib Axes, optional)

  • theme ({"light", "dark"} or Theme)

  • show_hull (bool, default True)

Returns:

matplotlib Axes

Return type:

Any