Friday, 15 February 2013

numpy - Python 3.3 import matplotlib in Windows don't get along -



numpy - Python 3.3 import matplotlib in Windows don't get along -

well have python 3.3 , need matplotlib function properly.

i used pip install matplotlib install it.

have installed six, dateutils, scipy, numpy , pyparsing work.

but when import function "import matplotlib mpl" brings me next error:

traceback (most recent phone call last): file "<pyshell#1>", line 1, in <module> import matplotlib file "c:\python33\lib\site-packages\matplotlib\__init__.py", line 179, in <module> matplotlib.cbook import is_string_like file "c:\python33\lib\site-packages\matplotlib\cbook.py", line 2298, in <module> _putmask = np.putmask attributeerror: 'module' object has no attribute 'putmask'

so how prepare this?

part of code:

import numpy np import tkinter tk import matplotlib mpl matplotlib.patches import rectangle matplotlib.backends.backend_tkagg import figurecanvastkagg, navigationtoolbar2tkagg # custom toolbar lorem ipsum text class customtoolbar(navigationtoolbar2tkagg): def __init__(self,canvas_,parent_): self.toolitems = ( ('home', 'lorem ipsum dolor sit down amet', 'home', 'home'), ('back', 'consectetuer adipiscing elit', 'back', 'back'), ('forward', 'sed diam nonummy nibh euismod', 'forward', 'forward'), (none, none, none, none), ('pan', 'tincidunt ut laoreet', 'move', 'pan'), ('zoom', 'dolore magna aliquam', 'zoom_to_rect', 'zoom'), (none, none, none, none), ('subplots', 'putamus parum claram', 'subplots', 'configure_subplots'), ('save', 'sollemnes in futurum', 'filesave', 'save_figure'), ) navigationtoolbar2tkagg.__init__(self,canvas_,parent_)

could please help?

python numpy matplotlib

No comments:

Post a Comment