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

Fixes : Add setter/getter methods for all keyword parameters to Figure.__init__ #24617#27257

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
Lambxx wants to merge8 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromLambxx:main

Conversation

Lambxx
Copy link

PR summary

This fixes Add setter/getter methods for all keyword parameters to Figure.init#24617
#24617
. It adds getters and setters for :
SubplotBars
Figsize
Layout .
It cherry picks code from#21549
as well as adding missing get/set for figsize
-->

layout needs added
Copy link

@github-actionsgithub-actionsbot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join uson gitter for real-time discussion.

For details on testing, writing docs, and our review process, please seethe developer guide

We strive to be a welcoming and open project. Please follow ourCode of Conduct.

@story645
Copy link
Member

Thanks for taking this on! Since you're building on a previous committees work, can you please add them as a coauthorhttps://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors

@Lambxx
Copy link
Author

Thanks for taking this on! Since you're building on a previous committees work, can you please add them as a coauthorhttps://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors

Thanks for letting me know, ill take a look and do that

Testing addedCo-Authored by : Co-authored-by:@stanleyjs
GetSubPlot bars author added :Co-Authored by : Co-authored-by:@stanleyjs
@Lambxx
Copy link
Author

Co author :@stanleyjs added to commits

Copy link
Member

@story645story645 left a comment
edited
Loading

Choose a reason for hiding this comment

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

I think deleting everything in colorbar is what's causing many of the test failures.

@Lambxx
Copy link
Author

Thanks for pointing that out ill look through and see if i can fix some of them

deleted cbar in error added back
@Lambxx
Copy link
Author

Im looking through the errors and trying to fix, but bit confused about the meaning of this one, any pointers appreciated

Stub: in file lib/matplotlib/figure.pyi
MISSING
Runtime: in file lib/matplotlib/figure.py:2930
<function Figure.set_layout at 0x7f56cf17f9d0>

Updated with original test frommatplotlib#21549written by@stanleyjsCo-Authored-By: Jay Stanley <stanleyjs@users.noreply.github.com>
@story645
Copy link
Member

Tests should be added tohttps://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/tests/test_figure.py and not put in a new file -> I think that's why coverage thinks nothing is tested. And that error is I think cause you need to add the new setter/getter methods tohttps://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/figure.pyi

seehttps://matplotlib.org/devdocs/devel/contribute.html#type-hints

Lambxx reacted with thumbs up emoji

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

@story645story645story645 left review comments

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

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

Assignees
No one assigned
Projects
Status: Waiting for author
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[ENH]: Add setter/getter methods for all keyword parameters to Figure.__init__
2 participants
@Lambxx@story645

[8]ページ先頭

©2009-2025 Movatter.jp