8000 Fixes : Add setter/getter methods for all keyword parameters to Figure.__init__ #24617 by Lambxx · Pull Request #27257 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Lambxx
Copy link
@Lambxx Lambxx commented Nov 2, 2023

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-actions github-actions bot 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 us on gitter for real-time discussion.

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

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

@story645
Copy link
Member
story645 commented Nov 2, 2023

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

@Lambxx
Copy link
Author
Lambxx commented Nov 3, 2023

Thanks for taking this on! Since you're building on a previous committees work, can you please add them as a coauthor https://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 added
Co-Authored by : Co-authored-by: @stanleyjs
GetSubPlot bars author added :
Co-Authored by : Co-authored-by: @stanleyjs
@Lambxx
Copy link
Author
Lambxx commented Nov 3, 2023

Co author : @stanleyjs added to commits

Copy link
Member
@story645 story645 left a comment

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
Lambxx commented Nov 3, 2023

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
Lambxx commented Nov 6, 2023

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 from
matplotlib#21549
written by @stanleyjs

Co-Authored-By: Jay Stanley <stanleyjs@users.noreply.github.com>
@story645
Copy link
Member
story645 commented Nov 7, 2023

Tests should be added to https://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 to https://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/figure.pyi

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for author
Development

Successfully merging this pull request may close these issues.

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