From 92fe9d0d07c421fdf426a2434ca636f399dfeff3 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Mon, 26 Dec 2011 02:12:34 -0800 Subject: [PATCH] DOC: Display thresholding example with gray colormap. --- doc/examples/plot_otsu.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/examples/plot_otsu.py b/doc/examples/plot_otsu.py index 060f54c6..f68a410a 100644 --- a/doc/examples/plot_otsu.py +++ b/doc/examples/plot_otsu.py @@ -27,18 +27,18 @@ binary = image > thresh plt.figure(figsize=(10, 3.5)) plt.subplot(1, 3, 1) -plt.imshow(image) -plt.title('original') +plt.imshow(image, cmap=plt.cm.gray) +plt.title('Original') plt.axis('off') -plt.subplot(1, 3, 2) +plt.subplot(1, 3, 2, aspect='equal') plt.hist(image) -plt.title('histogram') +plt.title('Histogram') plt.axvline(thresh, color='r') plt.subplot(1, 3, 3) -plt.imshow(binary) -plt.title('thresholded') +plt.imshow(binary, cmap=plt.cm.gray) +plt.title('Thresholded') plt.axis('off') plt.show()