From 84dd08a1c268b56601ff3859b06ba90034b39362 Mon Sep 17 00:00:00 2001 From: cgohlke Date: Wed, 12 Sep 2012 12:21:01 -0700 Subject: [PATCH] Fix poly_editor.py on Python 3 Polygon does not handle Python 3 zip objects --- examples/event_handling/poly_editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/event_handling/poly_editor.py b/examples/event_handling/poly_editor.py index 0eeb3608d151..c7d96df66d51 100644 --- a/examples/event_handling/poly_editor.py +++ b/examples/event_handling/poly_editor.py @@ -152,7 +152,7 @@ def motion_notify_callback(self, event): xs = r*np.cos(theta) ys = r*np.sin(theta) - poly = Polygon(zip(xs, ys,), animated=True) + poly = Polygon(list(zip(xs, ys)), animated=True) ax = plt.subplot(111) ax.add_patch(poly)