MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _raise_on_image_difference

Function _raise_on_image_difference

lib/matplotlib/testing/decorators.py:101–110  ·  view source on GitHub ↗
(expected, actual, tol)

Source from the content-addressed store, hash-verified

99
100
101def _raise_on_image_difference(expected, actual, tol):
102 __tracebackhide__ = True
103
104 err = compare_images(expected, actual, tol, in_decorator=True)
105 if err:
106 for key in ["actual", "expected", "diff"]:
107 err[key] = os.path.relpath(err[key])
108 raise ImageComparisonFailure(
109 ('images not close (RMS %(rms).3f):'
110 '\n\t%(actual)s\n\t%(expected)s\n\t%(diff)s') % err)
111
112
113class _ImageComparisonBase:

Callers 2

compareMethod · 0.85
wrapperFunction · 0.85

Calls 2

compare_imagesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…