mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
DOC: Replace doctest with literal code block
This commit is contained in:
@@ -46,13 +46,13 @@ def frt2(a):
|
||||
|
||||
>>> f = frt2(img)
|
||||
|
||||
Plot the results:
|
||||
Plot the results::
|
||||
|
||||
>>> import matplotlib.pyplot as plt
|
||||
>>> plt.imshow(f, interpolation='nearest', cmap=plt.cm.gray)
|
||||
>>> plt.xlabel('Angle')
|
||||
>>> plt.ylabel('Translation')
|
||||
>>> # plt.show()
|
||||
import matplotlib.pyplot as plt
|
||||
plt.imshow(f, interpolation='nearest', cmap=plt.cm.gray)
|
||||
plt.xlabel('Angle')
|
||||
plt.ylabel('Translation')
|
||||
plt.show()
|
||||
|
||||
References
|
||||
----------
|
||||
|
||||
@@ -131,13 +131,13 @@ def hough(img, theta=None):
|
||||
|
||||
>>> out, angles, d = hough(img)
|
||||
|
||||
Plot the results:
|
||||
Plot the results::
|
||||
|
||||
>>> import matplotlib.pyplot as plt
|
||||
>>> plt.imshow(out, cmap=plt.cm.bone)
|
||||
>>> plt.xlabel('Angle (degree)')
|
||||
>>> plt.ylabel('Distance %d (pixel)' % d[0])
|
||||
>>> # plt.show()
|
||||
import matplotlib.pyplot as plt
|
||||
plt.imshow(out, cmap=plt.cm.bone)
|
||||
plt.xlabel('Angle (degree)')
|
||||
plt.ylabel('Distance %d (pixel)' % d[0])
|
||||
plt.show()
|
||||
|
||||
.. plot:: hough_tf.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user