Skip to content

Commit

Permalink
Fix matplotlib deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill committed Sep 13, 2023
1 parent 78acb3f commit 488a0fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/innvestigate/utils/visualizations.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np

Expand Down Expand Up @@ -57,7 +58,7 @@ def heatmap(
:param kwargs: Arguments passed on to :func:`project`
:return: The tensor as color-map.
"""
cmap = plt.cm.get_cmap(cmap_type)
cmap = mpl.colormaps.get_cmap(cmap_type)

tmp = X
shape = tmp.shape
Expand Down

0 comments on commit 488a0fe

Please sign in to comment.