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

FIX: Keep legacy alpha behavior for violinplot without facecolor#30636

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
timhoffm wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromtimhoffm:fix-violin-artist-alpha

Conversation

timhoffm
Copy link
Member

Closes#30613.

@timhoffmtimhoffmforce-pushed thefix-violin-artist-alpha branch from3c87254 to520c6c7CompareOctober 5, 2025 16:50
Comment on lines 8975 to 8976
You can use the ``(color, alpha)`` tuple notation to pass
semi-transparent colors.
Copy link
Member

Choose a reason for hiding this comment

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

Little unclear here, do you mean that (color, alpha) supercedes but does not set the artist alpha? So for example linecolor still used the artist alpha?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Changed to

To set transparency forfacecolor oredgecolor use
(color, alpha) tuples.

story645 reacted with thumbs up emoji
@timhoffmtimhoffmforce-pushed thefix-violin-artist-alpha branch from520c6c7 tof70a4a2CompareOctober 6, 2025 07:02
@timhoffmtimhoffm added this to thev3.11.0 milestoneOct 7, 2025
@timhoffmtimhoffm added the Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labelOct 7, 2025
@timhoffm
Copy link
MemberAuthor

Test failure is our flaky timeout and unrelated to the PR.

Copy link
Member

@story645story645 left a comment

Choose a reason for hiding this comment

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

I'm not clear on why the test sets a facecolor via if statement but otherwise looks good. Thanks for taking care of this.

# Case 1: If facecolor is unspecified, it's the first color from the color cycle
# with Artist-level alpha=0.3
facecolor= ('y'ifmpl.rcParams['_internal.classic_mode']
elseplt.rcParams['axes.prop_cycle'].by_key()['color'][0])
Copy link
Member

Choose a reason for hiding this comment

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

why is the color controlled by if statement, rather than fixed, given that this is a test?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

when debugging this I ran local code snippets until it worked. Then , I turned them into a test, which failed because our tests still use the classic style.

I figured it is reasonable to make the test robust to work with any style even though we are only testing one. It may be that we switch to using our default theme for testing at some point in the future. And it would be a nuisance if that test then falls over and someone has to figure out why.

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

Reviewers

@tacaswelltacaswelltacaswell approved these changes

@story645story645story645 approved these changes

Assignees

No one assigned

Labels

Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.status: needs review

Projects

None yet

Milestone

v3.11.0

Development

Successfully merging this pull request may close these issues.

[Bug]: violin's default alpha no longer persists

3 participants

@timhoffm@tacaswell@story645

[8]ページ先頭

©2009-2025 Movatter.jp