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 b5710c5
Browse filesBrowse the repository at this point in the historyBrowse files
Fix per-panel colorbars overflowing into neighbouring panels (#687)
Place each colorbar through a per-panel axes divider
(make_axes_locatable(ax).append_axes(location, size, pad)) instead of anchoring
an inset axes outside the panel. The divider steals space from the panel, so the
colorbar matches the (equal-aspect) plot's drawn extent and stays inside the
panel's grid cell — it can no longer overflow into a neighbouring panel.
- Colorbar height/width now matches the plot (fixes the equal-aspect mismatch
that a plain fig.colorbar(ax=ax) would introduce).
- Stacked same-side colorbars use an absolute pad (CBAR_STACK_PAD_INCHES) wide
enough to clear the inner colorbar's tick labels, preserving order and keeping
both readable.
- location handles tick/label side; colorbar_params (location/width/pad/label/
custom kwargs) and per-layer alpha are preserved.
Verified: single colorbar, adjust_pad/width, all four locations, two-on-same-side,
all-sides, and multiple-images-in-one-cs all render correctly at native size and
under the test thumbnail. Categorical legends already use scanpy's shrink-then-place.
0 commit comments