-
-
Notifications
You must be signed in to change notification settings - Fork 33
AttributeError: module 'matplotlib' has no attribute 'pyplot' #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This, or some variant of it, is the correct fix. Because if close and Gcf.get_all_fig_managers():
+ import matplotlib.pyplot
matplotlib.pyplot.close('all') |
@QuLogic That suggested fix won't work, as in the original example the In particular, as long as While I think such an import should be added (as per your fix), the issue is really upstream with librosa, so I've filed an issue there. |
Uh oh!
There was an error while loading. Please reload this page.
While attempting to create a piano roll with librosa and matplotlib, like this:
I encounter this error:
The error seems to be fixed if I explicitly declare
import matplotlib.pyplot as plt
at the start of the file and then use that to call it like this:plt.close('all')
. If that alone is satisfactory, I would request to do a PR.The text was updated successfully, but these errors were encountered: