Skip to content

Commit

Permalink
Address MatplotlibDeprecation (in 3.9) to set apply_theta_transform t…
Browse files Browse the repository at this point in the history
…o False. There are no discernable differences to plots generated with pre 3.9 versions.
  • Loading branch information
bikegeek committed Feb 14, 2025
1 parent 0007703 commit 5f8e0bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metplotpy/plots/taylor_diagram/taylor_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
from matplotlib.projections import PolarAxes
from matplotlib.transforms import Affine2D
import mpl_toolkits.axisartist.floating_axes as fa
import mpl_toolkits.axisartist.grid_finder as gf
import numpy as np
Expand Down Expand Up @@ -172,7 +173,7 @@ def _create_figure(self) -> None:

# in Matplotlib 3.10, the default for apply_theta_transforms=True has been deprecated, explicitly set this
# to True
tr = PolarAxes.PolarTransform(apply_theta_transforms=True)
tr = PolarAxes.PolarTransform(apply_theta_transforms=False)

# Correlation labels
rlocs = np.array([0, 0.2, 0.4, 0.6, 0.7, 0.8, 0.9, 0.95, 0.99, 1])
Expand Down

0 comments on commit 5f8e0bd

Please sign in to comment.