xoa.core.plot.TaylorDiagram#

class xoa.core.plot.TaylorDiagram(fig=None, subplot=111, ref_std=1.0, rmax=None, negative=False, corr_ticks=None, rms_levels=None, ref_label='Reference', std_label='Standard deviation', corr_label='Correlation', grid_kwargs=None, contour_kwargs=None, ref_kwargs=None)[source]#

A Taylor diagram on a polar axes

The angle is the arc cosine of the correlation and the radius is the standard deviation. The reference is on the horizontal axis at ref_std, and the distance to it is the centered root mean square difference, which is shown by contours. The diagram is a quarter of circle, or a half circle when there are negative correlations.

Parameters:
  • fig (None, matplotlib.figure.Figure) – A new figure by default

  • subplot (int, matplotlib.gridspec.SubplotSpec) – Position of the axes in the figure

  • ref_std (float) – Standard deviation of the reference, which is 1 for normalized data

  • rmax (None, float) – Maximal standard deviation

  • negative (bool) – Show negative correlations

  • corr_ticks (None, array_like) – Positive correlations where ticks are drawn. The negative ones are mirrored.

  • rms_levels (None, False, array_like) – Levels of the contours of centered root mean square difference. Automatic by default and no contours when False.

  • ref_label (None, str) – Label of the reference marker in the legend. No legend entry when None.

  • std_label (str) – Axis labels

  • corr_label (str) – Axis labels

  • grid_kwargs (None, dict) – Parameters of matplotlib.axes.Axes.grid()

  • contour_kwargs (None, dict) – Parameters of matplotlib.axes.Axes.contour()

  • ref_kwargs (None, dict) – Parameters of matplotlib.axes.Axes.plot() for the reference marker and the arc of constant standard deviation. Use arc=False to hide the arc.

ax#
Type:

matplotlib.projections.polar.PolarAxes

reference#

The marker of the reference

Type:

matplotlib.lines.Line2D

ref_arc#

The arc of constant standard deviation of the reference

Type:

None, matplotlib.lines.Line2D

contours#

The contours of centered root mean square difference

Type:

None, matplotlib.contour.QuadContourSet

contour_labels#

The labels of the contours, as matplotlib.text.Text objects

Type:

list

corr_label, std_label

The axis labels

Type:

matplotlib.text.Text

markers#

Artists of the points that are added, to be customized quickly, for instance with xoa.plot.add_shadow()

Type:

list

labels#

The matplotlib.text.Annotation objects of the labels written next to the points, when values are given

Type:

list

legend#
Type:

None, matplotlib.legend.Legend

colorbar#
Type:

None, matplotlib.colorbar.Colorbar

__init__(fig=None, subplot=111, ref_std=1.0, rmax=None, negative=False, corr_ticks=None, rms_levels=None, ref_label='Reference', std_label='Standard deviation', corr_label='Correlation', grid_kwargs=None, contour_kwargs=None, ref_kwargs=None)[source]#

Methods

add_legend(**kwargs)

Add the legend outside of the diagram, on its right

add_points(std, corr[, labels, values, ...])

Add points to the diagram