pyrolite.plot.biplot

pyrolite.plot.biplot.compositional_SVD(X: ndarray)[source]

Breakdown a set of compositions to vertexes and cases for adding to a compositional biplot.

Parameters

X (numpy.ndarray) – Compositional array.

Returns

vertexes, cases

Return type

numpy.ndarray, numpy.ndarray

pyrolite.plot.biplot.plot_origin_to_points(xs, ys, labels=None, ax=None, origin=(0, 0), color='k', marker='o', pad=0.05, **kwargs)[source]

Plot lines radiating from a specific origin. Fornulated for creation of biplots (covariance_biplot(), compositional_biplot()).

Parameters
  • xs, ys (numpy.ndarray) – Coordinates for points to add.

  • labels (list) – Labels for verticies.

  • ax (matplotlib.axes.Axes) – Axes to plot on.

  • origin (tuple) – Origin to plot from.

  • color (str) – Line color to use.

  • marker (str) – Marker to use for ends of vectors and origin.

  • pad (float) – Fraction of vector to pad text label.

Returns

Axes on which radial plot is added.

Return type

matplotlib.axes.Axes

pyrolite.plot.biplot.compositional_biplot(data, labels=None, ax=None, **kwargs)[source]

Create a compositional biplot.

Parameters
Returns

Axes on which biplot is added.

Return type

matplotlib.axes.Axes