-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move major/minor tick overstrike logic to Axis.
The Axis knows what the major and the minor ticker are so it makes sense to let it handle the deduplication logic. Revert some heuristic deduplication logic from the Locators themselves (which effectively tests that the new code works).
- Loading branch information
Showing
3 changed files
with
36 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Minor Locator no longer try to avoid overstriking major Locators | ||
```````````````````````````````````````````````````````````````` | ||
|
||
Previously, various locator classes contained custom logic to detect whether | ||
they are used as minor locators, and, if so, attempted to avoid emitting tick | ||
locations that collided with major ticks. | ||
|
||
This logic has now moved to the Axis class; thus, for example, | ||
``xaxis.minor.locator()`` now includes positions that collide with | ||
``xaxis.major.locator()``, but ``xaxis.get_minorticklocs()`` does not. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters