Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Smoke Test for Axes.step#27162
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Smoke Test for Axes.step#27162
Uh oh!
There was an error while loading.Please reload this page.
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.
Could be simplified a bit, but it is largely fine:
- Use
np.arange
instead ofnp.array(range(...))
- Could even use
np.arange
for the dates e.g.:
np.arange(start_date,start_date+datetime.timedelta(weeks=1),datetime.timedelta(days=1))
Does work
Also the last axes using the data arg I don't think really needs to be tested here, its notwrong, but it is testing a broader functionality that is largely orthogonal.
Uh oh!
There was an error while loading.Please reload this page.
PR summary
Smoke test for Axes.step using datetime data in lib/matplotlib/tests/test_datetime.py. This PR addresses one of the tasks listed in#26864
The image displays the plot of the test case:

PR checklist