From 16863535ebc33401dc886aa1225837d17cbfe112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Wed, 13 Mar 2013 10:59:26 +0100 Subject: [PATCH] Re-enable plots in doc strings and generate PDF images for them --- doc/source/conf.py | 2 +- skimage/io/collection.py | 4 ++++ skimage/transform/hough_transform.py | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 7e742eb2..c5ca8869 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -246,7 +246,7 @@ matplotlib.rcParams.update({ """ plot_include_source = True -plot_formats = [('png', 100)] +plot_formats = [('png', 100), ('pdf', 100)] plot2rst_index_name = 'README' plot2rst_rcparams = {'image.cmap' : 'gray', diff --git a/skimage/io/collection.py b/skimage/io/collection.py index fafca83f..6aa9cfc6 100644 --- a/skimage/io/collection.py +++ b/skimage/io/collection.py @@ -102,6 +102,10 @@ class MultiImage(object): (15, 10) (15, 10) + The two frames in this image can be shown with matplotlib: + + .. plot:: show_collection.py + """ def __init__(self, filename, conserve_memory=True, dtype=None): """Load a multi-img.""" diff --git a/skimage/transform/hough_transform.py b/skimage/transform/hough_transform.py index 1552e531..e83cecd5 100644 --- a/skimage/transform/hough_transform.py +++ b/skimage/transform/hough_transform.py @@ -140,6 +140,8 @@ def hough_line(img, theta=None): >>> out, angles, d = hough(img) + .. plot:: hough_tf.py + """ return _hough(img, theta)