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

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
QuLogic merged 7 commits intomatplotlib:mainfrom0taj:test_case
Dec 5, 2023
Merged

Conversation

0taj
Copy link
Contributor

@0taj0taj commentedOct 18, 2023
edited
Loading

PR summary

Smoke test forAxes.stem using datetime data inlib/matplotlib/tests/test_datetime.py. This PR addresses one of the tasks listed in#26864

The image displays the plot of the test case:
stem_smoke_test

PR checklist

@0taj
Copy link
ContributorAuthor

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

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.

Please add abottom argument to avoid the implicit 1970-01-01 of this method (and exercise that part of the code) (There is also achance 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.

@QuLogic
Copy link
Member

Probably should set some of the dates to be belowbottom as well.

@0taj
Copy link
ContributorAuthor

0taj commentedOct 19, 2023
edited
Loading

Here is also the updated figure. Sorry if there are still some mistakes but if there are any other changes that need to be made I will make those as well!
Figure_1

@QuLogicQuLogic mentioned this pull requestOct 20, 2023
64 tasks
@0taj0taj requested a review fromksundenOctober 21, 2023 04:45
Copy link
ContributorAuthor

@0taj0taj left a 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)
Copy link
ContributorAuthor

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?

Copy link
Member

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

@0taj
Copy link
ContributorAuthor

0taj commentedOct 25, 2023
edited
Loading

Here is the plot with the updated dates
test_stem

@ksundenksunden added this to thev3.9.0 milestoneOct 26, 2023
@0taj0taj requested a review fromQuLogicOctober 30, 2023 04:56
Copy link
Member

@QuLogicQuLogic left a 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.

@QuLogicQuLogic merged commit273a268 intomatplotlib:mainDec 5, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic left review comments

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

4 participants
@0taj@QuLogic@ksunden@melissawm

[8]ページ先頭

©2009-2025 Movatter.jp