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

Clarify semantics of plt.matshow(..., fignum=...).#27244

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
tacaswell merged 1 commit intomatplotlib:mainfromanntzer:pm
Nov 1, 2023

Conversation

anntzer
Copy link
Contributor

The semantics of the fignum parameter are rather confusing, per#22972 (in particular wrt. whether the figure gets resized or not -- it only does if fignum=(None or a non-existing figure number) (which creates a new figure), but not if fignum=0 (which also creates a new figure).

It's probably not worth fixing that (if anything we should just point users to Axes.matshow, which is just fine), but we can still improve the documentation.

PR summary

PR checklist

The semantics of the fignum parameter are rather confusing (inparticular wrt. whether the figure gets resized or not -- it only doesif fignum=(None or a non-existing figure number) (which creates a newfigure), but not if fignum=0 (which also creates a new figure).It's probably not worth fixing that (if anything we should just pointusers to Axes.matshow, which is just fine), but we can still improve thedocumentation.
@tacaswelltacaswell added this to thev3.8.2 milestoneNov 1, 2023
@tacaswelltacaswell merged commit09c7b7b intomatplotlib:mainNov 1, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestNov 1, 2023
@anntzeranntzer deleted the pm branchNovember 1, 2023 22:19
QuLogic added a commit that referenced this pull requestNov 1, 2023
…244-on-v3.8.xBackport PR#27244 on branch v3.8.x (Clarify semantics of plt.matshow(..., fignum=...).)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.8.2
Development

Successfully merging this pull request may close these issues.

2 participants
@anntzer@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp