Commit d5a811a
committed
fix(render_points): resolve continuous norm for the matplotlib backend
Matplotlib points passed an un-scaled fresh_norm() to ax.scatter and let it
autoscale, diverging from shapes/labels: a constant-valued continuous points
layer mapped to the cmap floor instead of the [0, 1] reset, and a LogNorm was
autoscaled over the raw data (crashing on a 0/negative). Route continuous points
through _resolve_continuous_norm so fill and colorbar match the other element
types and LogNorm/PowerNorm survive.
Kept separate from the core fix as it is the only change that can shift point
visual baselines.
Adds a regression test for render_points(norm=LogNorm()) over data with a 0.1 parent dfea23b commit d5a811a
2 files changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
702 | | - | |
| 701 | + | |
703 | 702 | | |
704 | 703 | | |
705 | 704 | | |
| |||
1416 | 1415 | | |
1417 | 1416 | | |
1418 | 1417 | | |
1419 | | - | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
1420 | 1426 | | |
1421 | 1427 | | |
1422 | 1428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
669 | 681 | | |
670 | 682 | | |
671 | 683 | | |
| |||
0 commit comments