From 49e06c97552173a42071be424a017455f283f8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Mon, 3 Dec 2012 14:37:26 +0100 Subject: [PATCH] Add title to hough peak detection example plot --- doc/examples/plot_hough_transform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/examples/plot_hough_transform.py b/doc/examples/plot_hough_transform.py index 12931c74..b74132da 100644 --- a/doc/examples/plot_hough_transform.py +++ b/doc/examples/plot_hough_transform.py @@ -102,6 +102,7 @@ for _, angle, dist in zip(*hough_peaks(h, theta, d)): y1 = (dist - cols * np.cos(angle)) / np.sin(angle) plt.plot((0, cols), (y0, y1), '-r') plt.axis((0, cols, rows, 0)) +plt.title('Detected lines') # Line finding, using the Probabilistic Hough Transform @@ -126,6 +127,6 @@ for line in lines: p0, p1 = line plt.plot((p0[0], p1[0]), (p0[1], p1[1])) -plt.title('Lines found with PHT') +plt.title('Probabilistic Hough') plt.axis('image') plt.show()