Set colormap to grayscale

This commit is contained in:
Tony S Yu
2014-11-11 23:01:27 -06:00
parent 379d8b1fb8
commit c109978c61
+1 -1
View File
@@ -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()