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

Add scatter test for datetime units#26882

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 10 commits intomatplotlib:mainfromseohyeonlee2020:main
Oct 18, 2023
Merged

Conversation

seohyeonlee2020
Copy link
Contributor

@seohyeonlee2020seohyeonlee2020 commentedSep 22, 2023
edited
Loading

PR summary

Closes issue#26864
added 3 subplots with datetime array on the x axis, y axis, and both axes.

PR checklist

added 3 subplots with datetime array on the x axis, y axis, and both axes.
@tacaswelltacaswell added this to thev3.9.0 milestoneSep 22, 2023
Copy link

@github-actionsgithub-actionsbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join uson gitter for real-time discussion.

For details on testing, writing docs, and our review process, please seethe developer guide

We strive to be a welcoming and open project. Please follow ourCode of Conduct.

@seohyeonlee2020
Copy link
ContributorAuthor

I incorporated the issues you mentioned in my 2nd commit.

@seohyeonlee2020
Copy link
ContributorAuthor

output

Comment on lines 294 to 297
# rotate labels so they don't look clogged
for label in axs[0].get_xticklabels():
label.set_rotation(40)
label.set_horizontalalignment('right')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

With a shorter array, this might not be necessary; would have to see what it looks like then.

@seohyeonlee2020
Copy link
ContributorAuthor

output2

I needed to rotate axis labels because they were still clogged after I reduced array length
np.random.seed(19680801)
y = np.cumsum(np.random.randn(N))
fig, axs = plt.subplots(3, 1, layout='constrained', figsize=(6, 6))
lims = [(np.datetime64('2005-02'), np.datetime64('2005-04')),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It doesn't look like lims is used

@scottshambaugh
Copy link
Contributor

Thank you for the contribution! I noted one thing to clean up but it looks generally good to me.

A note for whoever merges this, it closes the "Axes.scatter" item of#26864, not the whole ticket.

eliminated unused variable according to feedback ('lims')
@seohyeonlee2020
Copy link
ContributorAuthor

I deleted lims in my most recent pull request. Please review my request again.

@QuLogicQuLogic changed the titlewrote test_scatterAdd scatter test for datetime unitsOct 18, 2023
@QuLogicQuLogic merged commita589856 intomatplotlib:mainOct 18, 2023
@QuLogic
Copy link
Member

Thanks @seohyeon-lee-2025! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again.

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

@QuLogicQuLogicQuLogic left review comments

@scottshambaughscottshambaughscottshambaugh left review comments

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Projects
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

6 participants
@seohyeonlee2020@scottshambaugh@QuLogic@ksunden@tacaswell@melissawm

[8]ページ先頭

©2009-2025 Movatter.jp