Permalink
Browse files

Re-enable plots in doc strings and generate PDF images for them

  • Loading branch information...
1 parent 0324737 commit 16863535ebc33401dc886aa1225837d17cbfe112 @ahojnnes ahojnnes committed Mar 13, 2013
Showing with 7 additions and 1 deletion.
  1. +1 −1 doc/source/conf.py
  2. +4 −0 skimage/io/collection.py
  3. +2 −0 skimage/transform/hough_transform.py
View
@@ -246,7 +246,7 @@
"""
plot_include_source = True
-plot_formats = [('png', 100)]
+plot_formats = [('png', 100), ('pdf', 100)]
plot2rst_index_name = 'README'
plot2rst_rcparams = {'image.cmap' : 'gray',
View
@@ -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."""
@@ -140,6 +140,8 @@ def hough_line(img, theta=None):
>>> out, angles, d = hough(img)
+ .. plot:: hough_tf.py
+
"""
return _hough(img, theta)

0 comments on commit 1686353

Please sign in to comment.