Skip to content

Commit

Permalink
FIX: Add fix for matplotlib updated version (#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 authored Aug 8, 2024
1 parent 4c5686c commit 026da5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyart/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ def get_field_colormap(field):
if field in _DEFAULT_FIELD_COLORMAP:
return _DEFAULT_FIELD_COLORMAP[field]
else:
import matplotlib.cm
import matplotlib

return matplotlib.cm.get_cmap().name
# Use the default matplotlib colormap
return matplotlib.colormaps.get_cmap("Spectral_r").name


def get_field_limits(field, container=None, selection=0):
Expand Down

0 comments on commit 026da5d

Please sign in to comment.