Commit 266bdb5
committed
Simplify GridHelper invalidation.
GridHelperBase.invalidate/valid and Axes.invalidate_grid_helper are
never used externally and appear to be internal. But invalidation
doesn't need to be stored in a separate flag (`_force_update`), one can
simply reset `_old_limits` (which only serves this purpose) and unify
that with `_old_values` (which does the same).
The only `_update` method that was previously called to regenerate
invalidated grid info was `GridHelperCurveLinear._update`, which, other
than the redundant check of staleness (already done in `_update_lim`),
just forwarded to `_update_grid`, so get rid of `_update` and just
stick to `_update_grid`.1 parent 7c813db commit 266bdb5
File tree
3 files changed
+13
-16
lines changed- doc/api/next_api_changes/deprecations
- lib/mpl_toolkits/axisartist
3 files changed
+13
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | 325 | | |
327 | | - | |
| 326 | + | |
328 | 327 | | |
329 | 328 | | |
330 | 329 | | |
331 | | - | |
332 | | - | |
| 330 | + | |
| 331 | + | |
333 | 332 | | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
555 | 556 | | |
556 | 557 | | |
557 | 558 | | |
| 559 | + | |
558 | 560 | | |
559 | 561 | | |
560 | 562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
| |||
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 304 | + | |
315 | 305 | | |
316 | 306 | | |
317 | 307 | | |
| |||
0 commit comments