Repository navigation
Commit 017e0b7
committed
fix(color): degenerate colorbar matches the pixel norm (#700)
_make_continuous_mappable (the datashader continuous colorbar) expanded a
degenerate vmin==vmax to ±0.5, while the pixel path (_resolve_continuous_norm)
resets it to [0, 1] — so a constant continuous column drew a colorbar that
disagreed with its fill. Use the same [0, 1] fallback in both. Adds a parity
test. Intentional pixel change for the datashader-constant-column colorbar.1 parent 6adef54 commit 017e0b7
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | | - | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
891 | 899 | | |
892 | 900 | | |
893 | 901 | | |
| |||
0 commit comments