Commit ccd6342
committed
Small simplifications to FloatingAxesBase.
- _axes_class_floating is just the `super(FloatingAxesBase, self)` class
(per its definition in floatingaxes_class_factory), so we can just use
super-calls instead of explicitly referring to it (both in `__init__`
and in `cla`); and then we can just delete _axes_class_floating.
- Combine _gen_axes_patch into a single line (it's not as if the
intermediary variable names were particularly helpful).
- In cla(), the super() axes patch is already not in the draw tree
(it's FloatingAxesBase._gen_axes_patch() which is there, so no need
to adjust its visibility). _original_patch is never used anywhere, so
delete it.1 parent 876415d commit ccd6342
1 file changed
+11
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | | - | |
| 321 | + | |
324 | 322 | | |
325 | 323 | | |
326 | 324 | | |
327 | 325 | | |
328 | 326 | | |
329 | | - | |
330 | | - | |
331 | | - | |
| 327 | + | |
332 | 328 | | |
333 | 329 | | |
334 | | - | |
335 | | - | |
| 330 | + | |
336 | 331 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
347 | 339 | | |
348 | 340 | | |
349 | 341 | | |
| |||
363 | 355 | | |
364 | 356 | | |
365 | 357 | | |
366 | | - | |
367 | | - | |
| 358 | + | |
368 | 359 | | |
369 | 360 | | |
370 | 361 | | |
| |||
0 commit comments