matplotlib - 3-D Quiver Plot in Python -


i trying make 3-d quiver plot in python 2.7. when run quiver3d_demo.py matplotlib site, value error looks like:

-------------------------------------------------------------------------- valueerror                                traceback (most recent call last) /library/python/2.7/site-packages/ipython-2.0.0_dev-py2.7.egg/ipython/utils/py3compat.pyc in        execfile(fname, *where) 202             else: 203                 filename = fname --> 204             __builtin__.execfile(filename, *where)  /users/loisks/desktop/quiver3d_demo.py in <module>()  15      np.sin(np.pi * z))  16  ---> 17 ax.quiver(x, y, z, u, v, w, length=0.1)  18   19 plt.show()  /library/python/2.7/site-packages/matplotlib-1.4.x-py2.7-macosx-10.8-intel.egg/matplotlib/axes/_axes.pyc in quiver(self, *args, **kw)  3802         if not self._hold:  3803             self.cla() -> 3804         q = mquiver.quiver(self, *args, **kw)  3805         self.add_collection(q, false)  3806         self.update_datalim(q.xy)  /library/python/2.7/site-packages/matplotlib-1.4.x-py2.7-macosx-10.8-intel.egg/matplotlib/quiver.pyc in __init__(self, ax, *args, **kw) 395         """ 396         self.ax = ax --> 397         x, y, u, v, c = _parse_args(*args) 398         self.x = x 399         self.y = y  /library/python/2.7/site-packages/matplotlib-1.4.x-py2.7-macosx-10.8-intel.egg/matplotlib/quiver.pyc in _parse_args(*args) 357         nr, nc = 1, u.shape[0] 358     else: --> 359         nr, nc = u.shape 360     if len(args) == 2:  # remaining after removing u,v,c 361         x, y = [np.array(a).ravel() in args] 

valueerror: many values unpack

any suggestions? it's not quiver3d_demo.py either - have trouble independently making 3d quiver plot.

you have old version of matplotlib. the matplotlib website says version 1.4.0 or later required.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -