Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17df397

Browse files
authored
Merge pull request #11576 from dstansby/compare-doc
Add parameter doc to save_diff_image
2 parents 5448787 + 34c59dd commit 17df397

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,16 @@ def compare_images(expected, actual, tol, in_decorator=False):
451451

452452

453453
def save_diff_image(expected, actual, output):
454+
'''
455+
Parameters
456+
----------
457+
expected : str
458+
File path of expected image.
459+
actual : str
460+
File path of actual image.
461+
output : str
462+
File path to save difference image to.
463+
'''
454464
# Drop alpha channels, similarly to compare_images.
455465
expectedImage = _png.read_png(expected)[..., :3]
456466
actualImage = _png.read_png(actual)[..., :3]

0 commit comments

Comments
 (0)