Skip to content

Fix axes mismatch when elements have multi-CS transformations#580

Merged
timtreis merged 1 commit intomainfrom
fix/issue-176-multi-cs-ax-mismatch
Apr 5, 2026
Merged

Fix axes mismatch when elements have multi-CS transformations#580
timtreis merged 1 commit intomainfrom
fix/issue-176-multi-cs-ax-mismatch

Conversation

@timtreis
Copy link
Copy Markdown
Member

@timtreis timtreis commented Apr 5, 2026

Summary

@timtreis timtreis force-pushed the fix/issue-176-multi-cs-ax-mismatch branch from cf34bfe to 3961712 Compare April 5, 2026 21:13
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 5, 2026

Codecov Report

❌ Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.63%. Comparing base (303140c) to head (113aa11).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/spatialdata_plot/pl/basic.py 84.61% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #580      +/-   ##
==========================================
+ Coverage   75.36%   75.63%   +0.26%     
==========================================
  Files          10       10              
  Lines        2935     2996      +61     
  Branches      684      702      +18     
==========================================
+ Hits         2212     2266      +54     
- Misses        441      444       +3     
- Partials      282      286       +4     
Files with missing lines Coverage Δ
src/spatialdata_plot/pl/utils.py 66.19% <100.00%> (+0.59%) ⬆️
src/spatialdata_plot/pl/basic.py 84.81% <84.61%> (+0.82%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

When elements have transformations to multiple coordinate systems,
filter_by_coordinate_system cannot strip the extra transformations
(upstream limitation). This caused show() to auto-detect too many
CS and raise a mismatch error when the user passed their own axes.

Apply a stricter CS filter when coordinate_systems is auto-detected
and axes are provided: keep only CS that have element types for all
render commands. Also improve the error message with a hint to pass
coordinate_systems= explicitly when the mismatch cannot be resolved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@timtreis timtreis force-pushed the fix/issue-176-multi-cs-ax-mismatch branch from 3961712 to 113aa11 Compare April 5, 2026 21:21
@timtreis timtreis merged commit e8c262e into main Apr 5, 2026
8 checks passed
@timtreis timtreis deleted the fix/issue-176-multi-cs-ax-mismatch branch April 5, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't plot different elements in a specific axes when multiple coordinate systems are available

2 participants