From 9fc9eafb828c7fa136675425f986d07705b85c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Wed, 3 Feb 2016 21:12:19 -0500 Subject: [PATCH] DOC: make image smaller for better visu --- doc/examples/filters/plot_inpaint.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/examples/filters/plot_inpaint.py b/doc/examples/filters/plot_inpaint.py index 8799cfa4..72101d90 100644 --- a/doc/examples/filters/plot_inpaint.py +++ b/doc/examples/filters/plot_inpaint.py @@ -26,13 +26,13 @@ import matplotlib.pyplot as plt from skimage import data, color from skimage.restoration import inpaint -image_orig = data.astronaut() +image_orig = data.astronaut()[0:200, 0:200] # Create mask with three defect regions: left, middle, right respectively mask = np.zeros(image_orig.shape[:-1]) mask[20:60, 0:20] = 1 -mask[200:300, 150:170] = 1 -mask[50:100, 400:430] = 1 +mask[160:180, 70:155] = 1 +mask[30:60, 170:195] = 1 # Defect image over the same region in each color channel image_defect = image_orig.copy() @@ -60,5 +60,5 @@ ax3.set_title('Inpainted image') ax3.imshow(image_result) ax3.axis('off') -plt.tight_layout() +fig.tight_layout() plt.show()