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

This commit is contained in:
Johannes Schönberger
2013-03-13 10:59:26 +01:00
parent 0324737c47
commit 16863535eb
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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',
+4
View File
@@ -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."""
+2
View File
@@ -140,6 +140,8 @@ def hough_line(img, theta=None):
>>> out, angles, d = hough(img)
.. plot:: hough_tf.py
"""
return _hough(img, theta)