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
DOC: Improve readability of date formatters/locators example #26254
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.
I think it's an improvement- minor not that you can take or leave & ping me to merge (or I'll check back in a bit)
@@ -55,13 +34,42 @@ def plot_axis(ax, locator=None, xmax='2002-02-01', fmt=None, formatter=None): | |||
ax.text(0.0, 0.2, locator or formatter, transform=ax.transAxes, | |||
fontsize=14, fontname='Monospace', color='tab:blue') | |||
|
|||
# %% | |||
# :ref:`Date locators <date-tickers>` (also known as tickers) |
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.
# :ref:`Date locators <date-tickers>` (also known as tickers) | |
# :ref:`Date locators <date-tickers>` |
Since they're locator objects, I think the also known as adds more confusion than clarity.
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.
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.
Ugh , the class that manages location are the locators, the object they locate are the ticks, both Tick objects and Locators are found in the Tick module. Let me know if this is starting to feel out of scope/a different problem altogether
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.
So the docs should read "Most of the date tickers locators can locate single or multiple values ticks." and "The available date tickers locators are:", right? If this is the case, should this be changed in this PR or better in a seperate one (or do I still get it wrong?).
So I will remove the "(also known as tickers)".
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.
Yup, correct (I think) and your choice about this PR or follow on.
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.
let's make it a separate issue
by grouping code and output
@@ -99,6 +99,8 @@ | |||
|
|||
.. _dateutil: https://dateutil.readthedocs.io | |||
|
|||
.. _date-tickers: | |||
|
|||
Date tickers |
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 should also probably be changed to Date tick locators
?
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.
Yes, I just named the reference after the heading, if the heading changes it would make sense to change the reference along (although technically not necessary).
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
PR summary
Improve readability of date formatters/locators example by grouping code and output.
PR checklist