-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Added smoke test for Axes.stem #27135
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
I see that I need to reformat the code, but I was wondering if the test case handles the required task as this is one of my first PRs |
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.
Please add a bottom
argument to avoid the implicit 1970-01-01 of this method (and exercise that part of the code) (There is also a chance this is broken already, so if it is, that should be reported)
Also please test both vertical and horizontal orientations, as we want to make sure we don't miss that from this method.
Probably should set some of the dates to be below |
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.
The changes have been fixed
fig, (ax1, ax2, ax3, ax4, ax5, ax6) = plt.subplots(6, 1, layout="constrained") | ||
|
||
limit_value = 10 | ||
above = datetime.datetime(2100, 10, 18) |
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.
Should the value of these dates be changed?
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 so, I think so, the far off dates obscure what is actually being plotted, in my opinion
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.
Sorry for the delay coming back to this.
PR summary
Smoke test for
Axes.stem
using datetime data inlib/matplotlib/tests/test_datetime.py
. This PR addresses one of the tasks listed in #26864The image displays the plot of the test case:

PR checklist