Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63a13eb commit b705443Copy full SHA for b705443
1 file changed
lib/matplotlib/testing/compare.py
@@ -133,6 +133,6 @@ def save_diff_image( expected, actual, output ):
133
absDiffImage = abs(expectedImage-actualImage)
134
# expand differences in luminance domain
135
absDiffImage *= 10
136
- save_image_np = absDiffImage.astype(np.uint8)
+ save_image_np = np.clip(absDiffImage,0,255).astype(np.uint8)
137
save_image = Image.fromarray(save_image_np)
138
save_image.save(output)
0 commit comments