From af345f1a3238797d61aeefb24585b39b4cd9ebe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Scho=CC=88nberger?= Date: Mon, 23 Apr 2012 18:45:11 +0200 Subject: [PATCH] improved color assignment of circle in shapes example script --- doc/examples/plot_shapes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/examples/plot_shapes.py b/doc/examples/plot_shapes.py index 55569016..8107fc80 100644 --- a/doc/examples/plot_shapes.py +++ b/doc/examples/plot_shapes.py @@ -36,9 +36,7 @@ img[rr,cc,1] = 255 #: fill circle rr, cc = circle(200, 200, 100, img.shape) -img[rr,cc,0] = 255 -rr, cc = circle(200, 200, 100, img.shape) -img[rr,cc,1] = 255 +img[rr,cc,:] = (255, 255, 0) #: fill ellipse rr, cc = ellipse(300, 300, 100, 200, img.shape)