Commit 0f89c30
committed
In LogTransform, clip after log, not before.
When clipping before taking the log, the clip value in the output array
cannot be beyond log(epsilon) ~ -300. When clipping after taking the
log, the clip value can be much further (see comments regarding choice
of value).
This allows setting the default nonpos mode back to "clip".
Some test images had to be updated as this effectively moves the
position of the "clip point", slightly changing the slope of the line
that goes to that point and thus the rasterization (by a tiny amount).1 parent a5c0164 commit 0f89c30
5 files changed
Lines changed: 29 additions & 28 deletions
File tree
- lib/matplotlib
- axes
- tests/baseline_images
- test_axes
- test_scale
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1618 | 1618 | | |
1619 | 1619 | | |
1620 | 1620 | | |
| 1621 | + | |
1621 | 1622 | | |
1622 | 1623 | | |
1623 | 1624 | | |
| |||
1673 | 1674 | | |
1674 | 1675 | | |
1675 | 1676 | | |
| 1677 | + | |
1676 | 1678 | | |
1677 | 1679 | | |
1678 | 1680 | | |
| |||
2851 | 2853 | | |
2852 | 2854 | | |
2853 | 2855 | | |
2854 | | - | |
2855 | | - | |
2856 | | - | |
2857 | | - | |
2858 | | - | |
2859 | 2856 | | |
2860 | 2857 | | |
2861 | 2858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2970 | 2970 | | |
2971 | 2971 | | |
2972 | 2972 | | |
2973 | | - | |
2974 | | - | |
2975 | | - | |
2976 | | - | |
| 2973 | + | |
| 2974 | + | |
2977 | 2975 | | |
2978 | 2976 | | |
2979 | 2977 | | |
| |||
3292 | 3290 | | |
3293 | 3291 | | |
3294 | 3292 | | |
3295 | | - | |
3296 | | - | |
3297 | | - | |
3298 | | - | |
| 3293 | + | |
| 3294 | + | |
3299 | 3295 | | |
3300 | 3296 | | |
3301 | 3297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 95 | + | |
99 | 96 | | |
100 | 97 | | |
101 | | - | |
102 | | - | |
103 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| |||
432 | 441 | | |
433 | 442 | | |
434 | 443 | | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | 444 | | |
| 445 | + | |
440 | 446 | | |
441 | 447 | | |
442 | 448 | | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
447 | 455 | | |
448 | 456 | | |
449 | 457 | | |
| |||
0 commit comments