Skip to content

Commit

Permalink
Merge pull request #38 from johanez/feature-issue-37
Browse files Browse the repository at this point in the history
fix issue #37 : ImportError with Matplotlib 3.9.0
  • Loading branch information
wtq2255 authored May 22, 2024
2 parents 69c35fa + c6e4c3d commit 6d41b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/audioflux/display/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.axes as plaxes
from matplotlib.cm import get_cmap
from matplotlib import colormaps
from matplotlib.ticker import Formatter, ScalarFormatter, MaxNLocator, SymmetricalLogLocator, FixedLocator
from audioflux.utils import midi_to_note

Expand Down Expand Up @@ -190,7 +190,7 @@ def fill_spec(
if y_axis == 'chroma':
y_coords = np.arange(data.shape[-2] + 1)

cmap = get_cmap('plasma')
cmap = colormaps['plasma']
collection = axes.pcolormesh(x_coords, y_coords, data, cmap=cmap)

axes.set_xlim(np.min(x_coords), np.max(x_coords))
Expand Down

0 comments on commit 6d41b13

Please sign in to comment.