You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
Activity
jklymak commentedon Oct 1, 2019
Try reinstalling matplotlib?
Ametorbis commentedon Oct 3, 2019
@jklymak Thank you for your comment. I tried reinstalling matplotlib and it worked.