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

Skip to content

Cast to integer to get rid of numpy warning #3241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 26, 2014
Prev Previous commit
Next Next commit
Cast to integer in bezier for indexing
  • Loading branch information
jenshnielsen committed Jul 22, 2014
commit d7a5c8e19209c85221abfd55cf3ba07b0fd81baf
3 changes: 1 addition & 2 deletions lib/matplotlib/bezier.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def split_path_inout(path, inside, tolerence=0.01, reorder_inout=False):

for ctl_points, command in path_iter:
iold = i
i += len(ctl_points) / 2
i += len(ctl_points) // 2
if inside(ctl_points[-2:]) != begin_inside:
bezier_path = concat([ctl_points_old[-2:], ctl_points])
break
Expand Down Expand Up @@ -286,7 +286,6 @@ def split_path_inout(path, inside, tolerence=0.01, reorder_inout=False):
verts_right = right[:]

#i += 1

if path.codes is None:
path_in = Path(concat([path.vertices[:i], verts_left]))
path_out = Path(concat([verts_right, path.vertices[i:]]))
Expand Down