Revision: 3697 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3697&view=rev Author: efiring Date: 2007年08月10日 11:06:16 -0700 (2007年8月10日) 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.
Revision: 3902 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3902&view=rev Author: efiring Date: 2007年09月30日 13:32:31 -0700 (2007年9月30日) Log Message: ----------- bugfix by Zack, confirmed by Gary Ruben. http://sourceforge.net/mailarchive/forum.php?thread_name=d8cf9020703071339y43354eaerbfa1a47d272e5d26%40mail.gmail.com&forum_name=matplotlib-users Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes3d.py Modified: trunk/matplotlib/lib/matplotlib/axes3d.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes3d.py 2007年09月30日 20:08:50 UTC (rev 3901) +++ trunk/matplotlib/lib/matplotlib/axes3d.py 2007年09月30日 20:32:31 UTC (rev 3902) @@ -510,8 +510,8 @@ # polys = [] boxes = [] - for rs in npy.arange(0,rows,rstride): - for cs in npy.arange(0,cols,cstride): + for rs in npy.arange(0,rows-1,rstride): + for cs in npy.arange(0,cols-1,cstride): ps = [] corners = [] for a,ta in [(X,tX),(Y,tY),(Z,tZ)]: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 3903 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3903&view=rev Author: efiring Date: 2007年09月30日 13:47:55 -0700 (2007年9月30日) Log Message: ----------- Apply patch by Leon Barrett, tracker #1798196 Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes3d.py Modified: trunk/matplotlib/lib/matplotlib/axes3d.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes3d.py 2007年09月30日 20:32:31 UTC (rev 3902) +++ trunk/matplotlib/lib/matplotlib/axes3d.py 2007年09月30日 20:47:55 UTC (rev 3903) @@ -515,11 +515,11 @@ ps = [] corners = [] for a,ta in [(X,tX),(Y,tY),(Z,tZ)]: - ztop = a[rs][cs:min(cols-1,cs+cstride)] + ztop = a[rs][cs:min(cols,cs+cstride+1)] zleft = ta[min(cols-1,cs+cstride)][rs:min(rows,rs+rstride+1)] zbase = a[min(rows-1,rs+rstride)][cs:min(cols,cs+cstride+1):] zbase = zbase[::-1] - zright = ta[cs][rs:min(rows-1,rs+rstride):] + zright = ta[cs][rs:min(rows,rs+rstride+1):] zright = zright[::-1] corners.append([ztop[0],ztop[-1],zbase[0],zbase[-1]]) z = npy.concatenate((ztop,zleft,zbase,zright)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.