Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ImportError: cannot import name 'rcParams' #15353

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

Closed
Ametorbis opened this issue Oct 1, 2019 · 2 comments
Closed

ImportError: cannot import name 'rcParams' #15353

Ametorbis opened this issue Oct 1, 2019 · 2 comments
Labels
Community support Users in need of help.

Comments

@Ametorbis
Copy link

Ametorbis commented Oct 1, 2019

When I import matplotlib in jupyter
"import matplotlib.pyplot as plt "

I get error - which shows


ImportError Traceback (most recent call last)
in
1 #%matplotlib inline
2 import numpy as np
----> 3 import matplotlib.pyplot as plt
4 import h5py # for importing the .hdf files
5 from scipy.optimize import leastsq

~\Anaconda3\lib\site-packages\matplotlib\pyplot.py in
30 from cycler import cycler
31 import matplotlib
---> 32 import matplotlib.colorbar
33 import matplotlib.image
34 from matplotlib import rcsetup, style

~\Anaconda3\lib\site-packages\matplotlib\colorbar.py in
25
26 import matplotlib as mpl
---> 27 import matplotlib.artist as martist
28 import matplotlib.cbook as cbook
29 import matplotlib.collections as collections

~\Anaconda3\lib\site-packages\matplotlib\artist.py in
10
11 import matplotlib
---> 12 from . import cbook, docstring, rcParams
13 from .path import Path
14 from .transforms import (Bbox, IdentityTransform, Transform, TransformedBbox,

ImportError: cannot import name 'rcParams'

Please help me!

@jklymak
Copy link
Member

jklymak commented Oct 1, 2019

Try reinstalling matplotlib?

@jklymak jklymak added the Community support Users in need of help. label Oct 1, 2019
@Ametorbis
Copy link
Author

@jklymak Thank you for your comment. I tried reinstalling matplotlib and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community support Users in need of help.
Projects
None yet
Development

No branches or pull requests

3 participants