Commit ea0552e
committed
Cleanup ScalarFormatter; preparatory to moving it to format_ticks.
ScalarFormatter.set_locs calls a bunch of helper methods with arguments
that the helpers can reconstruct themselves based on
axis.get_view_interval(); in fact they *already* call
axis.get_view_interval() at certain places. So get rid of these
arguments.
ScalarFormatter._compute_offset is only ever called by set_locs, and
only if len(locs) > 0, so the `locs is None or not len(locs)` condition
is never True.1 parent 64c84b4 commit ea0552e
1 file changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
654 | | - | |
655 | 653 | | |
656 | 654 | | |
657 | | - | |
658 | | - | |
| 655 | + | |
| 656 | + | |
659 | 657 | | |
660 | 658 | | |
661 | 659 | | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | 660 | | |
666 | 661 | | |
667 | 662 | | |
| |||
699 | 694 | | |
700 | 695 | | |
701 | 696 | | |
702 | | - | |
| 697 | + | |
703 | 698 | | |
704 | 699 | | |
705 | 700 | | |
| |||
719 | 714 | | |
720 | 715 | | |
721 | 716 | | |
722 | | - | |
| 717 | + | |
723 | 718 | | |
724 | 719 | | |
725 | 720 | | |
| |||
736 | 731 | | |
737 | 732 | | |
738 | 733 | | |
739 | | - | |
| 734 | + | |
740 | 735 | | |
741 | 736 | | |
742 | 737 | | |
743 | | - | |
| 738 | + | |
744 | 739 | | |
745 | 740 | | |
746 | 741 | | |
| |||
0 commit comments