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

Skip to content

Commit 74af88e

Browse files
committed
fix typo in axes_grid/clip_path.py
svn path=/trunk/matplotlib/; revision=7190
1 parent 364277b commit 74af88e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/mpl_toolkits/axes_grid/clip_path.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
def atan2(dy, dx):
66
if dx == 0 and dx == 0:
7+
print "warning"
78
return 0
89
else:
910
return math.atan2(dy, dx)
@@ -45,7 +46,7 @@ def clip(xlines, ylines, x0, clip="right"):
4546
segx, segy = [], []
4647

4748
if dx == 0. and dy == 0:
48-
dx = x[+1] - x[i]
49+
dx = x[i+1] - x[i]
4950
dy = y[i+1] - y[i]
5051

5152
a = degrees(atan2(dy, dx))
@@ -59,7 +60,7 @@ def clip(xlines, ylines, x0, clip="right"):
5960
ns = i+1
6061

6162
if dx == 0. and dy == 0:
62-
dx = x[+1] - x[i]
63+
dx = x[i+1] - x[i]
6364
dy = y[i+1] - y[i]
6465

6566
a = degrees(atan2(dy, dx))

0 commit comments

Comments
 (0)