Commit 6263a99
committed
Prepare for making create_dummy_axis not necessary.
create_dummy_axis() sets up some internal _DummyAxis, which should not
really have been leaked to end users; instead, we should just always
attach a _DummyAxis to locators and formatters at init to start with.
_DummyAxis should actually be quite cheap to create, but it does create
two Bbox.unit() (dataLim and viewLim) which are *slightly* expensive to
create, can be placed by plain tuples, and do not correspond to any APIs
on "standard" Axises (there's Axes.dataLim/viewLim, not
Axis.dataLim/viewLim). While the offending attributes are on a private
class, they are publically accessible e.g. via
`locator.create_dummy_axis(); locator.axis` so go through a deprecation
to be extra safe.1 parent 7b6f325 commit 6263a99
File tree
2 files changed
+17
-6
lines changed- doc/api/next_api_changes/deprecations
- lib/matplotlib
2 files changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
157 | 164 | | |
158 | | - | |
159 | | - | |
| 165 | + | |
| 166 | + | |
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
163 | | - | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | | - | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
172 | | - | |
| 179 | + | |
173 | 180 | | |
174 | 181 | | |
175 | | - | |
| 182 | + | |
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
| |||
0 commit comments