mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-09 12:30:07 +08:00
Set colormap to grayscale
This commit is contained in:
@@ -91,7 +91,7 @@ def sobel_gray(image):
|
||||
return filter.sobel(image)
|
||||
|
||||
fig, ax = plt.subplots()
|
||||
ax.imshow(sobel_gray(image))
|
||||
ax.imshow(sobel_gray(image), cmap=plt.cm.gray)
|
||||
|
||||
plt.show()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user