i set ipython on laptop , wrote snippet test matplotlib installation greeted error, end of traceback says permissionerror: [errno 13] permission denied: 'c:\users\karthik kc\.matplotlib\fontlist.py3k.cache'. have been unable resolve error. suggestions?
import matplotlib.pyplot plt x = range(-10, 10,1) y = [] xi in x: yi = xi**2 y.append(yi) plt.plot(x,y) plt.show() and error -
exception in tkinter callback traceback (most recent call last): file "c:\python34\lib\tkinter\__init__.py", line 1533, in __call__ return self.func(*args) file "c:\python34\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 278, in resize self.show() file "c:\python34\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 349, in draw figurecanvasagg.draw(self) file "c:\python34\lib\site-packages\matplotlib\backends\backend_agg.py", line 469, in draw self.figure.draw(self.renderer) file "c:\python34\lib\site-packages\matplotlib\artist.py", line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) file "c:\python34\lib\site-packages\matplotlib\figure.py", line 1085, in draw func(*args) file "c:\python34\lib\site-packages\matplotlib\artist.py", line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) file "c:\python34\lib\site-packages\matplotlib\axes\_base.py", line 2110, in draw a.draw(renderer) file "c:\python34\lib\site-packages\matplotlib\artist.py", line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) file "c:\python34\lib\site-packages\matplotlib\axis.py", line 1116, in draw renderer) file "c:\python34\lib\site-packages\matplotlib\axis.py", line 1065, in _get_tick_bboxes extent = tick.label1.get_window_extent(renderer) file "c:\python34\lib\site-packages\matplotlib\text.py", line 798, in get_window_extent bbox, info, descent = self._get_layout(self._renderer) file "c:\python34\lib\site-packages\matplotlib\text.py", line 311, in _get_layout ismath=false) file "c:\python34\lib\site-packages\matplotlib\backends\backend_agg.py", line 232, in get_text_width_height_descent font = self._get_agg_font(prop) file "c:\python34\lib\site-packages\matplotlib\backends\backend_agg.py", line 276, in _get_agg_font fname = findfont(prop) file "c:\python34\lib\site-packages\matplotlib\font_manager.py", line 1421, in findfont font = fontmanager.findfont(prop, **kw) file "c:\python34\lib\site-packages\matplotlib\font_manager.py", line 1304, in findfont _rebuild() file "c:\python34\lib\site-packages\matplotlib\font_manager.py", line 1402, in _rebuild pickle_dump(fontmanager, _fmcache) file "c:\python34\lib\site-packages\matplotlib\font_manager.py", line 952, in pickle_dump open(filename, 'wb') fh: permissionerror: [errno 13] permission denied: 'c:\\users\\karthik kc\\.matplotlib\\fontlist.py3k.cache'
Comments
Post a Comment