mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-13 17:45:20 +08:00
Re-enable plots in doc strings and generate PDF images for them
This commit is contained in:
+1
-1
@@ -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',
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user