Commit 0b480ee
Feature: Add container to encapsulate external axes (#422)
* Fix references in documentation for clarity
Fix two unidenfined references in why.rst.
1. ug_apply_norm is a typo I think.
2. ug_mplrc. I'm not sure what it should be. Only by guess.
* keep apply_norm
* Add container class to wrap external axes objects
* remove v1
* fix test_geographic_multiple_projections
* fixes
* add container tests
* fix merge issue
* correct rebase
* fix mpl39 issue
* fix double draw in repl
* Improve external axes container layout for native appearance
- Increase default shrink factor from 0.75 to 0.95 to make external axes (e.g., ternary plots) larger and more prominent
- Change positioning from centered to top-aligned with left offset for better alignment with adjacent Cartesian subplots
- Top alignment ensures abc labels and titles align properly across different projection types
- Add 5% left offset to better utilize available horizontal space
- Update both _shrink_external_for_labels and _ensure_external_fits_within_container methods for consistency
This makes ternary and other external axes integrate seamlessly with standard matplotlib subplots, appearing native rather than artificially constrained.
* Handle non-numeric padding conversion
* adjust test
* Add coverage for external axes container
* Expand external container test coverage
* this works
* Adjust mpltern default shrink
* Add mpltern container shrink tests
* Document external axes containers
* adding more tests
* tests
* Fix merge
---------
Co-authored-by: Gepcel <gepcelway@gmail.com>
Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>1 parent d108101 commit 0b480ee
File tree
12 files changed
+4433
-26
lines changed- docs
- ultraplot
- axes
- internals
- tests
12 files changed
+4433
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
161 | 203 | | |
162 | 204 | | |
163 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
970 | | - | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
971 | 982 | | |
972 | 983 | | |
973 | 984 | | |
| |||
2588 | 2599 | | |
2589 | 2600 | | |
2590 | 2601 | | |
2591 | | - | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
2592 | 2616 | | |
2593 | 2617 | | |
2594 | 2618 | | |
| |||
0 commit comments