Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
0taj wants to merge3 commits intomatplotlib:mainfrom0taj:test_fill
Closed

Smoke Test for Axes.step#27162

0taj wants to merge3 commits intomatplotlib:mainfrom0taj:test_fill

Conversation

0taj
Copy link
Contributor

@0taj0taj commentedOct 21, 2023
edited
Loading

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:
test_step

PR checklist

Copy link
Member

@ksundenksunden left a 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:

  • Usenp.arange instead ofnp.array(range(...))
  • Could even usenp.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.

@scottshambaugh
Copy link
Contributor

Hi@0taj thank you for your contribution! Unfortunately it looks like#27091 also implemented this test and was opened as a PR first, so I'm closing this one as a duplicate. However I would encourage you to pick out another of the functions from the list in#26864 and take a shot at it!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@0taj@scottshambaugh@ksunden

[8]ページ先頭

©2009-2025 Movatter.jp