xoa.core.plot.plot_taylor

Contents

xoa.core.plot.plot_taylor#

xoa.core.plot.plot_taylor(std, corr, ref_std=1.0, diagram=None, **kwargs)[source]#

Plot points in a Taylor diagram

Parameters:
  • std (array_like(n)) – Standard deviations and correlations of n points. The correlations may be negative.

  • corr (array_like(n)) – Standard deviations and correlations of n points. The correlations may be negative.

  • ref_std (float) – Standard deviation of the reference. The default of 1 is for data that are already normalized by the reference.

  • diagram (None, TaylorDiagram) – Existing diagram. It is created when not provided, with a half circle if there are negative correlations and a maximal standard deviation that fits the points.

  • kwargs – Parameters of TaylorDiagram when the diagram is created, or of TaylorDiagram.add_points(), like labels, values and markers.

Returns:

TaylorDiagram – The diagram, which holds the axes in its ax attribute and the plotted artists

Example

plot_taylor([0.9, 1.2, 0.7], [0.95, 0.8, -0.3], labels=["a", "b", "c"],
            markers=["o", "s", "^"])