8000 Merge pull request #1236 from cgohlke/patch-3 · matplotlib/matplotlib@3dfd380 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3dfd380

Browse files
committed
Merge pull request #1236 from cgohlke/patch-3
Fix poly_editor.py on Python 3
2 parents 6b6e476 + 84dd08a commit 3dfd380

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