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

Test to guard against styling side-effects.#160

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
samcunliffe merged 1 commit intomatplotlib:mainfromsamcunliffe:guard-against-64
Jun 13, 2023

Conversation

samcunliffe
Copy link
Collaborator

Developed along the way to battle-hardening#156.
Here is a test to guard against re-introducing#64.

Relates to

Testing

Can be tested by dumping amatplotlib.style.use("Solarize_Light2") in the middle of the test function... causing it to fail as expected with:

image

Notes to the reviewer

Doesn't actuallyhave to go ontomain, but... it can do. And doesn't hurt? Especially if we abandon#2. In any case, I will cherry-pick it over onto#156.

I couldn't think of a smart way to freeze the style and compare pre- vs post- style change... but a dumbmark.mpl_image_compare works. Very happy if there's some Stansby pytest/mpl knowledge™️ that helps here.

Copy link
Member

Choose a reason for hiding this comment

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

my eyes are bleeding

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

How about a normal distribution? They're more aesthetically pleasing.

(Also perhaps a more intelligent test since I'm using theHistogramWidget.)

Copy link
Member

Choose a reason for hiding this comment

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

my eyes were bleeding at the use ofjet mainly, so the histogram is 👍 much better

@samcunliffe
Copy link
CollaboratorAuthor

samcunliffe commentedJun 12, 2023
edited
Loading

If you like this, I'll force-push a squash to save the repo size.

  • squash and forcepush

Copy link
Member

@dstansbydstansby left a comment

Choose a reason for hiding this comment

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

Nice! Please do squash this into one commit, and feel free to self-merge when that's done

Use plt.subplots for safety.And no longer need copy.deepcopy.Save eyes and make a lovely histogram.
@samcunliffe
Copy link
CollaboratorAuthor

feel free to self-merge when that's done

New changes require approval from someone other than the last pusher

I think the auto-merge is smart enough to disregard your approval because the commit hash changed (?)
Probably we want it that way in general.

@samcunliffesamcunliffe added this pull request to the merge queueJun 13, 2023
Merged via the queue intomatplotlib:main with commitbc2e279Jun 13, 2023
@samcunliffesamcunliffe deleted the guard-against-64 branchJune 13, 2023 10:02
@samcunliffesamcunliffe mentioned this pull requestJun 20, 2023
2 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dstansbydstansbyAwaiting requested review from dstansby

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@samcunliffe@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp