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

Remove the magic background colour.#84

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

Conversation

samcunliffe
Copy link
Collaborator

Solves#35

@samcunliffesamcunliffe marked this pull request as draftMay 3, 2023 16:51
@samcunliffesamcunliffeforce-pushed the35-background-transparent branch from9419be5 tocc3ec93CompareMay 3, 2023 17:36
@samcunliffesamcunliffeforce-pushed the35-background-transparent branch fromcc3ec93 to23604bfCompareMay 3, 2023 17:41
@samcunliffesamcunliffe linked an issueMay 3, 2023 that may beclosed by this pull request
@samcunliffesamcunliffe marked this pull request as ready for reviewMay 3, 2023 17:52
self.axes.set_facecolor(NAPARI_WINDOW_COLOR)
# changing color of axes background to transparent
self.canvas.figure.patch.set_facecolor("none")
self.axes.set_facecolor("none")

# changing colors of all axes
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Bit of a napari noob here, but I'd guess that these lines 👇 don't work withlight themes.

Copy link
Member

Choose a reason for hiding this comment

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

Ooh yes, suppose they will not. I hadn't heard of the light theme before, I will open a new issue to test and possibly fixnapari-matplotlib with the white theme.

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.

👍 LGTM, with the napari light theme selected the Matplotlib figure (looks awful but) has a transparent background.

samcunliffe reacted with laugh emoji
@dstansbydstansby added this pull request to the merge queueMay 4, 2023
Merged via the queue intomatplotlib:main with commitb656cbaMay 4, 2023
@samcunliffesamcunliffe deleted the 35-background-transparent branchMay 4, 2023 08:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dstansbydstansbydstansby approved these changes

@ruaridhgruaridhgAwaiting requested review from ruaridhg

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

Successfully merging this pull request may close these issues.

Make figure background colour transparent
2 participants
@samcunliffe@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp