Skip to content

Commit ba38dbe

Browse files
committed
fix: matplotlib deprecation warning
1 parent f92bd12 commit ba38dbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

truelearn/utils/visualisations/_bubble_plotter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing_extensions import Self
33

44
import circlify
5-
from matplotlib import cm, colors, patches
5+
from matplotlib import cm, colors, colormaps, patches
66
import matplotlib.pyplot as plt
77

88
from truelearn.models import Knowledge
@@ -85,7 +85,7 @@ def plot(
8585
plt.xlim(-lim, lim)
8686
plt.ylim(-lim, lim)
8787

88-
cmap = cm.get_cmap("Greens_r")
88+
cmap = colormaps.get_cmap("Greens_r")
8989

9090
# Normalize data range to colormap range
9191
norm = colors.Normalize(vmin=min(variances) - 0.05, vmax=max(variances) + 0.05)

0 commit comments

Comments
 (0)