Skip to content

Commit

Permalink
get_cmap deprecation
Browse files Browse the repository at this point in the history
See the [matplotlib changelog](https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.9.0.html#top-level-cmap-registration-and-access-functions-in-mpl-cm) for 3.9.0. Using the `matplotlib.pyplot` should be backward-compatible. Merging this will allow @jmmshn to continue with materialsproject/crystaltoolkit#391
  • Loading branch information
tschaume authored May 24, 2024
1 parent af6162c commit 78f574d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ifermi/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def _get_plot_data(
Returns:
The Fermi surface plot data.
"""
from matplotlib.cm import get_cmap
from matplotlib.pyplot import get_cmap

if not spin:
spin = self.fermi_surface.spins
Expand Down

0 comments on commit 78f574d

Please sign in to comment.