From bab2f715dda1427bf9f17f8b3f009157fce89376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 9 Sep 2012 19:41:06 +0200 Subject: [PATCH] Use more readable variable name for image --- doc/examples/plot_pyramid.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/examples/plot_pyramid.py b/doc/examples/plot_pyramid.py index 218e86b1..999435d5 100644 --- a/doc/examples/plot_pyramid.py +++ b/doc/examples/plot_pyramid.py @@ -21,15 +21,15 @@ image = data.lena() rows, cols, dim = image.shape pyramid = tuple(build_gaussian_pyramid(image, downscale=2)) -display = np.zeros((rows, cols + cols / 2, 3), dtype=np.double) +composite_image = np.zeros((rows, cols + cols / 2, 3), dtype=np.double) -display[:rows, :cols, :] = pyramid[0] +composite_image[:rows, :cols, :] = pyramid[0] i_row = 0 for p in pyramid[1:]: n_rows, n_cols = p.shape[:2] - display[i_row:i_row + n_rows, cols:cols + n_cols] = p + composite_image[i_row:i_row + n_rows, cols:cols + n_cols] = p i_row += n_rows -plt.imshow(display) +plt.imshow(composite_image) plt.show()