8000 Fix poly_editor.py on Python 3 · chdemars/matplotlib@84dd08a · GitHub
[go: up one dir, main page]

Skip to content

Commit 84dd08a

Browse files
committed
Fix poly_editor.py on Python 3
Polygon does not handle Python 3 zip objects
1 parent 6b6e476 commit 84dd08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/event_handling/poly_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def motion_notify_callback(self, event):
152152
xs = r*np.cos(theta)
153153
ys = r*np.sin(theta)
154154

155-
poly = Polygon(zip(xs, ys,), animated=True)
155+
poly = Polygon(list(zip(xs, ys)), animated=True)
156156

157157
ax = plt.subplot(111)
158158
ax.add_patch(poly)

0 commit comments

Comments
 (0)
0