mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
Merge pull request #1327 from endolith/patch-1
DOC: change colormap away from "jet" in examples
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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user