I have been trying the 3D matplotlib examples in http://www.scipy.org/Cookbook/Matplotlib/mplot3D using ipython as follows:
python -pylab -p scipy import matplotlib.axes3d as ax3d u=r_[0:2*pi:100j] v=r_[0:2*pi:100j] x=10*outer(cos(u),sin(v)) y=10*outer(sin(u),sin(v)) z=10*outer(ones(size(u)),cos(v)) a=ravel(x) b=ravel(y) c=ravel(z) fig=figure() ax=ax3d.Axes3D(fig) This works fine for ax.plot_wireframe(x,y,z) and ax.scatter3D(a,b,c) but when I try ax.plot3D(a,b,c) the following errors appear: x.plot3D(a,b,c) --------------------------------------------------------------------------- exceptions.TypeError Traceback (most recent call last) /home/rj/<ipython console> /usr/lib/python2.3/site-packages/matplotlib/axes3d.py in plot3D(self, xs, ys, zs, *args, **kwargs) 488 def plot3D(self, xs, ys, zs, *args, **kwargs): 489 had_data = self.has_data() --> 490 lines = Axes.plot(self, xs,ys, *args, **kwargs) 491 if len(lines)==1: 492 line = lines[0] /usr/lib/python2.3/site-packages/matplotlib/axes.py in plot(self, *args, **kwargs) 2129 lines = [line for line in lines] # consume the generator 2130 -> 2131 self.autoscale_view(scalex=scalex, scaley=scaley) 2132 return lines 2133 TypeError: autoscale_view() got an unexpected keyword argument 'scalex' Also, moving the mouse into the blank figure window gives many errors like: File "/usr/lib/python2.3/site-packages/matplotlib/proj3d.py", line 243, in proj_trans_points return proj_transform(xs,ys,zs,M) File "/usr/lib/python2.3/site-packages/matplotlib/proj3d.py", line 226, in proj_transform return proj_transform_vec(vec,M) File "/usr/lib/python2.3/site-packages/matplotlib/proj3d.py", line 185, in proj_transform_vec vecw = nx.matrixmultiply(M,vec) TypeError: unsupported operand type(s) for *: 'NoneType' and 'float' I am using Scientific Linux 4.4 i386 Scipy(with ATLAS) & numpy from svn, rev. 2292 & 3375 respectively MatPlotLib 87.7 Any ideas about what is going on? Thanks RJ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users