Repository navigation
DOC: Add Date Tick Locators and Formatters example - #21874
Conversation
dstansby
left a comment
There was a problem hiding this comment.
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
pytestpasses).flake8-docstringsand 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).