From 05458457f12618cc69970cd2bda87e25e29384a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Wed, 26 Mar 2014 20:51:19 -0400 Subject: [PATCH] DOC: simplify the code (Thx Stefan) --- doc/examples/plot_peak_local_max.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/plot_peak_local_max.py b/doc/examples/plot_peak_local_max.py index cebd5738..03981578 100644 --- a/doc/examples/plot_peak_local_max.py +++ b/doc/examples/plot_peak_local_max.py @@ -37,7 +37,7 @@ ax2.set_title('Maximum filter') ax3.imshow(im, cmap=plt.cm.gray) ax3.autoscale(False) -ax3.plot([p[1] for p in coordinates], [p[0] for p in coordinates], 'r.') +ax3.plot(coordinates[:, 1], coordinates[:, 0], 'r.') ax3.axis('off') ax3.set_title('Peak local max')