mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-09 10:37:59 +08:00
DOC: Change some jet colormaps to gray
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user