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 test_pcolormesh in test_datetime.py#27433

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

Open
nidaa-7 wants to merge5 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromnidaa-7:test-pcolormesh

Conversation

nidaa-7
Copy link
Contributor

@nidaa-7nidaa-7 commentedDec 4, 2023
edited
Loading

PR summary

Added code fortest_pcolormesh intest_datetime.py as requested in#26864

(old commits in this branch have already been merged#27401, only new additions are shown - the test_pcolormesh test)

Image of the plot:
plot

PR checklist

Comment on lines +465 to +466
x_timestamps = [date.timestamp() for date in x_dates]
y_timestamps = [date.timestamp() for date in y_dates]
Copy link
Member

Choose a reason for hiding this comment

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

I would avoid using the timestamp for the non-date data, as it is a number that looks like it should be interpreted as a data (and thus made me do a doubletake when I saw the image)

Perhaps just do e.g.np.linspace(0, 10, x_dates.size) or something similar

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

@ksundenksundenksunden left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@nidaa-7@ksunden@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp