Repository navigation
Commit f79a1c8
committed
revert(color): keep the datashader degenerate colorbar at ±0.5 (#700)
Commit 017e0b7 changed _make_continuous_mappable's vmin==vmax fallback from
±0.5 to [0,1] to "unify" it with the pixel norm. That was based on a spurious
review finding: _make_continuous_mappable is only the datashader colorbar, and
_build_ds_colorbar feeds it the user's explicit norm vmin/vmax — so for an
explicit vmin==vmax norm the change shifted the colorbar and broke the 4
*_datashader_norm_vmin_eq_vmax_* baselines. matplotlib pixels and a datashader
colorbar never co-occur, so there was no real divergence to fix. Restore the
original ±0.5 behavior; drop the parity test.1 parent d3cce20 commit f79a1c8
2 files changed
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 108 | + | |
113 | 109 | | |
114 | | - | |
| 110 | + | |
115 | 111 | | |
116 | 112 | | |
117 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | 891 | | |
900 | 892 | | |
901 | 893 | | |
| |||
0 commit comments