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

Skip to content

Commit 4d3b23a

Browse files
committed
Number of verts in simplification is an int
Fixes numpy warnings in indexing
1 parent 687f1f8 commit 4d3b23a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/tests/test_simplification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_start_with_moveto():
153153
decodebytes = base64.decodestring
154154

155155
verts = np.fromstring(decodebytes(data), dtype='<i4')
156-
verts = verts.reshape((len(verts) / 2, 2))
156+
verts = verts.reshape((len(verts) // 2, 2))
157157
path = Path(verts)
158158
segs = path.iter_segments(transforms.IdentityTransform(), clip=(0.0, 0.0, 100.0, 100.0))
159159
segs = list(segs)

0 commit comments

Comments
 (0)