Commit 120328f
committed
Simplify tick creation
The tick class hierarchy has a standard mechanism for creating ticks
via `_get_tick()` The only element that is changing in these functions
is the tick class. All other logic is identical.
This PR makes the tick class a class attribute of Axis so that we can
use one generic `_get_tick` implementation across all Axis subclasses.
Note that users/downstream libraries can still define their own
`_get_tick()` methods on subclasses if they want to have a different
behavior.1 parent 4e20f15 commit 120328f
2 files changed
+13
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
638 | 641 | | |
639 | 642 | | |
640 | 643 | | |
| |||
1437 | 1440 | | |
1438 | 1441 | | |
1439 | 1442 | | |
1440 | | - | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
1441 | 1449 | | |
1442 | 1450 | | |
1443 | 1451 | | |
| |||
2133 | 2141 | | |
2134 | 2142 | | |
2135 | 2143 | | |
| 2144 | + | |
2136 | 2145 | | |
2137 | 2146 | | |
2138 | 2147 | | |
| |||
2173 | 2182 | | |
2174 | 2183 | | |
2175 | 2184 | | |
2176 | | - | |
2177 | | - | |
2178 | | - | |
2179 | | - | |
2180 | | - | |
2181 | | - | |
2182 | | - | |
2183 | 2185 | | |
2184 | 2186 | | |
2185 | 2187 | | |
| |||
2389 | 2391 | | |
2390 | 2392 | | |
2391 | 2393 | | |
| 2394 | + | |
2392 | 2395 | | |
2393 | 2396 | | |
2394 | 2397 | | |
| |||
2431 | 2434 | | |
2432 | 2435 | | |
2433 | 2436 | | |
2434 | | - | |
2435 | | - | |
2436 | | - | |
2437 | | - | |
2438 | | - | |
2439 | | - | |
2440 | | - | |
2441 | 2437 | | |
2442 | 2438 | | |
2443 | 2439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 361 | + | |
368 | 362 | | |
369 | 363 | | |
370 | 364 | | |
| |||
653 | 647 | | |
654 | 648 | | |
655 | 649 | | |
| 650 | + | |
656 | 651 | | |
657 | 652 | | |
658 | 653 | | |
659 | 654 | | |
660 | 655 | | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | 656 | | |
669 | 657 | | |
670 | 658 | | |
| |||
0 commit comments