-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: Add Date Tick Locators and Formatters example #21874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Using eval()
seems a bit odd to me - is there a reason that locators
and formatters
can't contain the actual locator/formatter instances instead of their eval strings?
@dstansby the
Maybe using |
I guess I but the argument that the |
Would a repr on the objects (assuming it exists) print anything different from the eval? |
@story645 Defining nice |
Why couldn't those be in the repr? |
@story645 When I try |
In an ideal world we would define sensible |
Thanks @StefRe for your very helpful contributions! |
@jklymak Thanks! |
Sure, open an issue. Seems the solution is to add a docstring to rrulewrapper if it is public API... |
PR Summary
Add Date Tick Locators and Formatters example. Closes #17283.
I noticed that
matplotlib/lib/matplotlib/dates.py
Lines 982 to 983 in 2ccc67f
admonition:: References
; the same pertains tomatplotlib/lib/matplotlib/dates.py
Line 144 in 2ccc67f
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).