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

Skip to content

Commit d047d01

Browse files
cgohlkemdboom
authored andcommitted
Fix poly_editor.py on Python 3
Polygon does not handle Python 3 zip objects
1 parent 0581b75 commit d047d01

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(z 4EAF ip(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