From 2eb057726f1406b2bbe16aac3670a1effbfac069 Mon Sep 17 00:00:00 2001 From: Endolith Date: Sun, 31 Jan 2016 17:53:15 -0500 Subject: [PATCH] DOC: Change some `jet` colormaps to `gray` --- doc/examples/edges/plot_canny.py | 2 +- doc/examples/edges/plot_edge_filter.py | 4 ++-- doc/examples/filters/plot_entropy.py | 2 +- doc/examples/segmentation/plot_watershed.py | 2 +- doc/examples/xx_applications/plot_coins_segmentation.py | 2 +- doc/examples/xx_applications/plot_rank_filters.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/examples/edges/plot_canny.py b/doc/examples/edges/plot_canny.py index 123ea874..85549588 100644 --- a/doc/examples/edges/plot_canny.py +++ b/doc/examples/edges/plot_canny.py @@ -38,7 +38,7 @@ edges2 = feature.canny(im, sigma=3) fig, (ax1, ax2, ax3) = plt.subplots(nrows=1, ncols=3, figsize=(8, 3), sharex=True, sharey=True) -ax1.imshow(im, cmap=plt.cm.jet) +ax1.imshow(im, cmap=plt.cm.gray) ax1.axis('off') ax1.set_title('noisy image', fontsize=20) diff --git a/doc/examples/edges/plot_edge_filter.py b/doc/examples/edges/plot_edge_filter.py index 7ad1a6eb..0770ed48 100644 --- a/doc/examples/edges/plot_edge_filter.py +++ b/doc/examples/edges/plot_edge_filter.py @@ -76,11 +76,11 @@ ax1.imshow(edge_scharr, cmap=plt.cm.gray) ax1.set_title('Scharr Edge Detection') ax1.axis('off') -ax2.imshow(diff_scharr_prewitt, cmap=plt.cm.jet, vmax=max_diff) +ax2.imshow(diff_scharr_prewitt, cmap=plt.cm.gray, vmax=max_diff) ax2.set_title('Scharr - Prewitt') ax2.axis('off') -ax3.imshow(diff_scharr_sobel, cmap=plt.cm.jet, vmax=max_diff) +ax3.imshow(diff_scharr_sobel, cmap=plt.cm.gray, vmax=max_diff) ax3.set_title('Scharr - Sobel') ax3.axis('off') diff --git a/doc/examples/filters/plot_entropy.py b/doc/examples/filters/plot_entropy.py index 9bef036e..248436fb 100644 --- a/doc/examples/filters/plot_entropy.py +++ b/doc/examples/filters/plot_entropy.py @@ -63,7 +63,7 @@ ax0.set_title("Image") ax0.axis("off") fig.colorbar(img0, ax=ax0) -img1 = ax1.imshow(entropy(image, disk(5)), cmap=plt.cm.jet) +img1 = ax1.imshow(entropy(image, disk(5)), cmap=plt.cm.gray) ax1.set_title("Entropy") ax1.axis("off") fig.colorbar(img1, ax=ax1) diff --git a/doc/examples/segmentation/plot_watershed.py b/doc/examples/segmentation/plot_watershed.py index fb6f8a9b..2cd1ceb1 100644 --- a/doc/examples/segmentation/plot_watershed.py +++ b/doc/examples/segmentation/plot_watershed.py @@ -54,7 +54,7 @@ ax0, ax1, ax2 = axes ax0.imshow(image, cmap=plt.cm.gray, interpolation='nearest') ax0.set_title('Overlapping objects') -ax1.imshow(-distance, cmap=plt.cm.jet, interpolation='nearest') +ax1.imshow(-distance, cmap=plt.cm.gray, interpolation='nearest') ax1.set_title('Distances') ax2.imshow(labels, cmap=plt.cm.spectral, interpolation='nearest') ax2.set_title('Separated objects') diff --git a/doc/examples/xx_applications/plot_coins_segmentation.py b/doc/examples/xx_applications/plot_coins_segmentation.py index 404c1b98..f0710012 100644 --- a/doc/examples/xx_applications/plot_coins_segmentation.py +++ b/doc/examples/xx_applications/plot_coins_segmentation.py @@ -116,7 +116,7 @@ from skimage.filters import sobel elevation_map = sobel(coins) fig, ax = plt.subplots(figsize=(4, 3)) -ax.imshow(elevation_map, cmap=plt.cm.jet, interpolation='nearest') +ax.imshow(elevation_map, cmap=plt.cm.gray, interpolation='nearest') ax.axis('off') ax.set_title('elevation_map') diff --git a/doc/examples/xx_applications/plot_rank_filters.py b/doc/examples/xx_applications/plot_rank_filters.py index b1e0cc79..8ff02be1 100644 --- a/doc/examples/xx_applications/plot_rank_filters.py +++ b/doc/examples/xx_applications/plot_rank_filters.py @@ -552,7 +552,7 @@ ax1.set_title('Image') ax1.axis('off') ax1.set_adjustable('box-forced') -fig.colorbar(ax2.imshow(entropy(image, disk(5)), cmap=plt.cm.jet), ax=ax2) +fig.colorbar(ax2.imshow(entropy(image, disk(5)), cmap=plt.cm.gray), ax=ax2) ax2.set_title('Entropy') ax2.axis('off') ax2.set_adjustable('box-forced')