Skip to content

Commit

Permalink
Merge pull request #342 from jenshnielsen/fix_matplotlib_deprecation
Browse files Browse the repository at this point in the history
Fix matplotlib deprecation warning
  • Loading branch information
jenshnielsen committed Oct 24, 2022
2 parents b629e1d + 41540fb commit 2d36402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plottr/plot/mpl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"""
import logging

from matplotlib import rcParams, cm, pyplot as plt
from matplotlib import rcParams, colormaps, pyplot as plt

from plottr import configFiles
from .autoplot import AutoPlot, FigureMaker
Expand All @@ -51,4 +51,4 @@
logger = logging.getLogger(__name__)

# matplotlib tools and settings
symmetric_cmap = cm.get_cmap('bwr')
symmetric_cmap = colormaps.get_cmap('bwr')

0 comments on commit 2d36402

Please sign in to comment.