From: <ef...@us...> - 2007-08-10 18:06:29
|
Revision: 3697 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3697&view=rev Author: efiring Date: 2007-08-10 11:06:16 -0700 (Fri, 10 Aug 2007) Log Message: ----------- Fixed bug in scatter3D Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes3d.py Modified: trunk/matplotlib/lib/matplotlib/axes3d.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes3d.py 2007-08-10 12:53:21 UTC (rev 3696) +++ trunk/matplotlib/lib/matplotlib/axes3d.py 2007-08-10 18:06:16 UTC (rev 3697) @@ -679,8 +679,9 @@ def scatter(self, xs,ys,zs=None,dir='z',*args,**kwargs): patches = self.wrapped.scatter(xs,ys,*args,**kwargs) - zs = zs or [0]*len(xs) - patches = art3d.wrap_patch(patches, zs=[0]*len(xs),dir=dir) + if zs is None: + zs = [0]*len(xs) + patches = art3d.wrap_patch(patches, zs=zs, dir=dir) return patches def bar(self, left, height, z=0, dir='z', *args, **kwargs): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |