You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1fd8b48
Browse filesBrowse the repository at this point in the historyBrowse files
PRs 1+2 of #699, rebased onto the post-#715 (utils split) / post-#720 main.
PR3 (image-composite helper) deferred.
CmapParams gains behavior:
- fresh_norm(): a safe per-element copy (applying a Normalize autoscales vmin/vmax
in place, leaking one element's range into the next). Converts the 3 copy(norm)
sites in render.py.
- cmap_with_alpha() / colormap_with_alpha(): public-API replacement for the private
cmap._lut[:, -1] = alpha poke in the 1-channel image path; byte-identical body
colors, no shared-cmap mutation.
Single continuous-norm feeds pixels and colorbar:
- _resolve_continuous_norm(values, cmap_params) in _color.py: one resolver called by
each pixel-baking site and its matching colorbar site with the same vector, so they
cannot diverge. Folds the duplicated inline norm blocks in _color_vector_to_rgba and
_get_collection_shape (now in _geometry.py; its dead `norm` param dropped) and routes
_map_color_seg + the labels imshow + _append_outline_colorbar + the shapes set_clim
through it.
- Datashader / image / points / graph paths unchanged (already share their norm).
Behavior-preserving for normal renders; the only unified edge is an all-identical-value
outline column. Adds unit tests for the new CmapParams methods and _resolve_continuous_norm
plus a non-visual colorbar-clim integration test.
0 commit comments