mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-11 00:51:50 +08:00
Reorder subplots
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user