ENH: make interval_multiples work for years#9841
Merged
dstansby merged 3 commits intomatplotlib:masterfrom Nov 25, 2017
Merged
Conversation
d04a913 to
1cd2ddc
Compare
Member
|
👍 in principle. Can you add a test (just setting it up and asking what the ticks are rather than an image test)? Might be worth a whats_new update, or just a callout in the some date-related documentation to make it discoverable. |
Member
Author
|
@tacaswell I updated the doc at the top (which was out of date, BTW), and also will add to #9827 where I discuss DateLocators. |
tacaswell
approved these changes
Nov 23, 2017
Member
|
There is trailing whitespace. |
a05ac8b to
242134d
Compare
dstansby
approved these changes
Nov 25, 2017
has2k1
added a commit
to has2k1/mizani
that referenced
this pull request
Dec 2, 2017
The restriction in the first place was trying to make up for what was actually a bug in Matplotlib. It was fixed in matplotlib/matplotlib#9841.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
If
dates.AutoTickLocatorwas on the YEARLY frequency, it didn't respect the interval_multiples kwarg. This changes that by using the YearlyLocator ifinterval_multiples=True(Of course I still think dateticks should be overhauled, but thats a bigger project)
Fixes #9838
PR Checklist