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
Fix categorical color mapping crash when categories differ across coordinate systems
When plotting shapes colored by a categorical column across multiple
coordinate systems, the color_source_vector could carry unused categories
from other coordinate systems. This caused a length mismatch between
categories and stored colors in adata.uns, leading to a ValueError in
strict zip calls.
The fix removes unused categories early in both _generate_base_categorial_color_mapping
and _extract_colors_from_table_uns, and maps colors by the category's position in the
full table (not the subset) to ensure consistent coloring across coordinate systems.
Fixes#425
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments