Skip to content

Commit

Permalink
matplotlib.cm.get_cmap() is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
yut23 committed May 16, 2024
1 parent ef12bcd commit 446ac9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynucastro/networks/rate_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ def gridplot(self, comp=None, color_field="X", rho=None, T=None, **kwargs):

# Get figure, colormap
fig, ax = plt.subplots()
cmap = mpl.cm.get_cmap(cmap)
cmap = mpl.colormaps.get_cmap(cmap) # pylint: disable=no-member

# Get nuclei and all 3 numbers
nuclei = self.unique_nuclei
Expand Down

0 comments on commit 446ac9e

Please sign in to comment.