Skip to content

Commit 7ed02ab

Browse files
knSkafteNicki
andauthored
Fix AttributeError: module 'matplotlib' has no attribute 'axes' (#1955)
Co-authored-by: Nicki Skafte Detlefsen <[email protected]>
1 parent e434e90 commit 7ed02ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/torchmetrics/utilities/plot.py

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
if _MATPLOTLIB_AVAILABLE:
2525
import matplotlib
26+
import matplotlib.axes
2627
import matplotlib.pyplot as plt
2728

2829
_PLOT_OUT_TYPE = Tuple[plt.Figure, Union[matplotlib.axes.Axes, np.ndarray]]

0 commit comments

Comments
 (0)