Repository navigation
UltraPlot 2.7.5: Discrete colormap and vcenter fixes
UltraPlot 2.7.5 fixes discrete colormap endpoint handling and restores the vcenter keyword for diverging color scales.
Bug Fixes
- Custom below-range colors: Setting a custom
undercolor now frees the correct end of a continuous colormap when it is divided into discrete bins. Withextend="both", the lowest bin can use the low endpoint while the high endpoint remains reserved for above-range values. The fix also corrects endpoint reservation forextend="min"andextend="max"(#863).
Both panels use identical data, five bins from 0 to 1, the viridis colormap, a black below-range color, and extensions at both ends. Before the fix, values from 0.8 to 1 were indistinguishable from values above 1. After the fix, the above-range color is distinct and the lowest bin uses the full low endpoint. PNG, SVG, PDF, and the reproducible plotting script are included as release assets.
- Diverging color-scale centers:
vcenteris accepted directly or throughnorm_kwand selects a diverging normalizer whennormis omitted. When passing a preconstructed normalizer, set its center in the constructor instead. Combining a normalizer instance with a separatevcenternow raises a clear error (#860, fixes #639).
Maintenance
- Replaced skipped plotting tests with regression checks (#859).
- Added coverage for custom under/over colors across both
contourfandpcolormesh, sequential and diverging colormaps, and every extension setting.
What's Changed
- Replace skipped plotting tests with regression checks by @cvanelteren in #859
- Fix vcenter keyword handling and add regression coverage for #639 by @cvanelteren in #860
- Fix under-color endpoint reservation in discrete normalization by @cvanelteren in #863
Full Changelog: v2.7.4...v2.7.5
What's Changed
- Replace skipped plotting tests with regression checks by @cvanelteren in #859
- Fix vcenter keyword handling by @cvanelteren in #860
- Fix under-color endpoint reservation in discrete normalization by @cvanelteren in #863
Full Changelog: v2.7.4...v2.7.5