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. Usearc=Falseto hide the arc.
- reference#
The marker of the reference
- Type:
- 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:
- contour_labels#
The labels of the contours, as
matplotlib.text.Textobjects- Type:
- corr_label, std_label
The axis labels
- Type:
- markers#
Artists of the points that are added, to be customized quickly, for instance with
xoa.plot.add_shadow()- Type:
- labels#
The
matplotlib.text.Annotationobjects of the labels written next to the points, whenvaluesare given- Type:
- legend#
- Type:
None, matplotlib.legend.Legend
- colorbar#
- Type:
- __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