From 52962f30f1215b705bee0beb70b40819ddf0164e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Tue, 16 Oct 2012 16:50:54 +0200 Subject: [PATCH] Reorder subplots --- doc/examples/plot_denoise.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/examples/plot_denoise.py b/doc/examples/plot_denoise.py index 4a05e339..45e5e4b5 100644 --- a/doc/examples/plot_denoise.py +++ b/doc/examples/plot_denoise.py @@ -39,25 +39,25 @@ noisy = np.clip(noisy, 0, 1) fig, ax = plt.subplots(nrows=2, ncols=3, figsize=(8, 5)) -ax[0, 0].imshow(lena) +ax[0, 0].imshow(noisy) ax[0, 0].axis('off') -ax[0, 0].set_title('original') -ax[0, 1].imshow(tv_denoise(noisy, weight=0.02)) +ax[0, 0].set_title('noisy') +ax[0, 1].imshow(tv_denoise(noisy, weight=0.1)) ax[0, 1].axis('off') ax[0, 1].set_title('TV') -ax[0, 2].imshow(tv_denoise(noisy, weight=0.05)) +ax[0, 2].imshow(denoise_bilateral(noisy, sigma_color=0.03, sigma_range=15)) ax[0, 2].axis('off') -ax[0, 2].set_title('(more) TV') +ax[0, 2].set_title('Bilateral') -ax[1, 0].imshow(noisy) +ax[1, 0].imshow(tv_denoise(noisy, weight=0.2)) ax[1, 0].axis('off') -ax[1, 0].set_title('original') -ax[1, 1].imshow(denoise_bilateral(noisy, sigma_color=0.02, sigma_range=15)) +ax[1, 0].set_title('(more) TV') +ax[1, 1].imshow(denoise_bilateral(noisy, sigma_color=0.06, sigma_range=15)) ax[1, 1].axis('off') -ax[1, 1].set_title('Bilateral') -ax[1, 2].imshow(denoise_bilateral(noisy, sigma_color=0.05, sigma_range=15)) +ax[1, 1].set_title('(more) Bilateral') +ax[1, 2].imshow(lena) ax[1, 2].axis('off') -ax[1, 2].set_title('(more) Bilateral') +ax[1, 2].set_title('original') fig.subplots_adjust(wspace=0.02, hspace=0.2, top=0.9, bottom=0.05, left=0, right=1)