8000 Update the documentation to the 'tol' parameter. · matplotlib/matplotlib@a344de6 · GitHub
[go: up one dir, main page]

Skip to content

Commit a344de6

Browse files
committed
Update the documentation to the 'tol' parameter.
1 parent 125d235 commit a344de6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,9 @@ def compare_images( expected, actual, tol, in_decorator=False ):
283283
= INPUT VARIABLES
284284
- expected The filename of the expected image.
285285
- actual The filename of the actual image.
286-
- tol The tolerance (a unitless float). This is used to
287-
determine the 'fuzziness' to use when comparing images.
286+
- tol The tolerance (a colour value difference, where 255 is the
287+
maximal difference). The test fails if the average pixel
288+
difference is greater than this value.
288289
- in_decorator If called from image_comparison decorator, this should be
289290
True. (default=False)
290291
'''

0 commit comments

Comments
 (0)
0