This repository was archived by the owner on Nov 9, 2022. It is now read-only.
forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 50948d4
Simplify/fix save_diff_image.
- The previous `*255*10` factor was necessary when using the old _png
module to read images, which read them as 0-1 floats, the 255 factor
was needed prior to conversion to uint8. Now we use pillow everywhere
in matplotlib.testing.compare and work with uint8 throughout, so the
extra 255 is incorrect (it basically caused any slight difference to
be fully saturated).
- We don't use _png to write the diffs anymore, and pillow handles RGB
just fine, so we don't need to add an alpha channel if it's not there.1 parent bf9a451 commit 50948d4
1 file changed
+6
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | - | ||
509 | + | ||
510 | 510 | | |
511 | 511 | | |
512 | - | ||
513 | - | ||
514 | - | ||
512 | + | ||
513 | + | ||
515 | 514 | | |
516 | - | ||
517 | - | ||
518 | - | ||
519 | - | ||
520 | - | ||
521 | - | ||
515 | + | ||
516 | + | ||
522 | 517 | | |
523 | - | ||
524 | - | ||
525 | - | ||
526 | - | ||
518 | + | ||
0 commit comments