Commit 113aa11
Fix axes mismatch when elements have multi-CS transformations (#176)
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>1 parent 303140c commit 113aa11
File tree
4 files changed
+94
-11
lines changed- src/spatialdata_plot/pl
- tests
- pl
4 files changed
+94
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
993 | 994 | | |
994 | 995 | | |
995 | 996 | | |
996 | | - | |
| 997 | + | |
| 998 | + | |
997 | 999 | | |
998 | 1000 | | |
| 1001 | + | |
999 | 1002 | | |
1000 | 1003 | | |
1001 | 1004 | | |
| |||
1019 | 1022 | | |
1020 | 1023 | | |
1021 | 1024 | | |
1022 | | - | |
1023 | | - | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1024 | 1028 | | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
1025 | 1039 | | |
1026 | | - | |
| 1040 | + | |
1027 | 1041 | | |
1028 | 1042 | | |
1029 | 1043 | | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
1030 | 1051 | | |
1031 | 1052 | | |
1032 | 1053 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| |||
264 | 271 | | |
265 | 272 | | |
266 | 273 | | |
| 274 | + | |
267 | 275 | | |
268 | 276 | | |
269 | 277 | | |
| |||
2080 | 2088 | | |
2081 | 2089 | | |
2082 | 2090 | | |
2083 | | - | |
2084 | | - | |
2085 | | - | |
2086 | | - | |
2087 | | - | |
2088 | | - | |
2089 | 2091 | | |
2090 | 2092 | | |
2091 | 2093 | | |
2092 | 2094 | | |
2093 | | - | |
| 2095 | + | |
2094 | 2096 | | |
2095 | 2097 | | |
2096 | 2098 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
634 | 659 | | |
635 | 660 | | |
636 | 661 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments