Commit 1d6c2a6
committed
Cleanup demo_axes_divider.
Mostly cleanups to demo_locatable_axes_hard (and some misc. rewordings).
- No need to use the custom axes_grid1.mpl_axes.Axes subclass, plain
axes are just fine; no need to use the axes_grid specific `toggle`
API, we already call `set_tick_params(labelright=False)` which is
enough.
- No need to provide a separate label kwarg when constructing ax_cb,
subplot collision has been removed.
- Directly pass the locators when constructing the axes.
- Inline the definition of divider size components.1 parent 266939f commit 1d6c2a6
1 file changed
+10
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | | - | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | | - | |
37 | | - | |
| 34 | + | |
38 | 35 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 36 | + | |
52 | 37 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
58 | 44 | | |
59 | 45 | | |
60 | 46 | | |
| |||
96 | 82 | | |
97 | 83 | | |
98 | 84 | | |
99 | | - | |
100 | 85 | | |
101 | 86 | | |
102 | 87 | | |
| |||
105 | 90 | | |
106 | 91 | | |
107 | 92 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 93 | + | |
111 | 94 | | |
112 | 95 | | |
113 | 96 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 97 | + | |
117 | 98 | | |
118 | 99 | | |
119 | 100 | | |
120 | 101 | | |
121 | 102 | | |
122 | | - | |
123 | 103 | | |
124 | 104 | | |
125 | 105 | | |
| |||
0 commit comments