Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Taylor Diagram function #874

Merged
merged 17 commits into from
Oct 12, 2022
Prev Previous commit
flake8
  • Loading branch information
lee1043 committed Oct 12, 2022
commit 60b12c469a2cdd3a893a4009e66a961d002fc2c4
4 changes: 2 additions & 2 deletions pcmdi_metrics/graphics/taylor_diagram/taylor_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def TaylorDiagram(
ax.axis["top"].major_ticklabels.set_axis_direction("top")
ax.axis["top"].label.set_axis_direction("top")
ax.axis["top"].label.set_text(angular_axis_title)
ax.axis["left"].set_axis_direction("bottom")
ax.axis["left"].set_axis_direction("bottom")
ax.axis["left"].label.set_text(radial_axis_title)
ax.axis["right"].set_axis_direction("top")
ax.axis["right"].toggle(ticklabels=True)
Expand Down Expand Up @@ -263,7 +263,7 @@ def TaylorDiagram(
if debug:
crmsd = math.sqrt(stddev[i]**2 + refstd**2 - 2 * stddev[i] * refstd * corrcoef[i]) # centered rms difference
print(
'i, label, corrcoef[i], np.arccos(corrcoef[i]), stddev[i], crmsd:',
'i, label, corrcoef[i], np.arccos(corrcoef[i]), stddev[i], crmsd:',
i, label, corrcoef[i], np.arccos(corrcoef[i]), stddev[i], crmsd)

# Add arrow(s)
Expand Down