Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 298c052

Browse files
committed
fixed proj3 clipping
svn path=/trunk/matplotlib/; revision=2519
1 parent 0d2c9d2 commit 298c052

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/proj3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def proj_transform_vec_clip(vec, M):
183183
txs,tys,tzs = vecw[0]/w,vecw[1]/w,vecw[2]/w
184184
tis = (vecw[0] > 0) * (vecw[0] < 1) * (vecw[1] > 0) * (vecw[1] < 1)
185185
if nx.sometrue( tis ):
186-
tis = vecw[1]
186+
tis = vecw[1]<1
187187
return txs,tys,tzs,tis
188188

189189
def inv_transform(xs,ys,zs,M):

0 commit comments

Comments
 (0)