-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
[ENH]: Add setter/getter methods for all keyword parameters to Figure.__init__ #24617
[ENH]: Add setter/getter methods for all keyword parameters to Figure.__init__ #24617
Comments
@tacaswell I would like to take this up. As this will be my first contribution to this repo. if you can guide me it will be very helpful. |
Please see:
I also strongly suggest you start by cherry-picking the commits from #21549 and use that as a base. |
@tacaswell Will you help on following points Can you elaborate more on alias mechanism of layout and size_inches figsize And can you specifically mention for which params we have to implement getter and setters |
See matplotlib/lib/matplotlib/lines.py Lines 205 to 216 in aa1c538
I do not know this off the top of my head, part of the work that needs to be done on this issue is to sort out which of the keywords to |
@tacaswell Hello sir,i want to work on this issue,please assign this to me |
@Gairick52 as noted in other issues, we do not currently assign issues, if you are interested in working on this please do so and open a PR. |
Hi! This is my first contrib and am open to learning any new concepts involved. Could you just elaborate on what you require for the Getters & Setters portion? |
Hi all, is it still open? |
It looks like the linked PR (#24696) has been marked as orphaned and needs a rebase. I think taking over that PR is fair game as we have not heard from the original author in a few months. |
I have seen there are a few PR's on this, but none have closed the issue. Am I ok to add a PR? |
I have added a PR; apologies in advance if anything is broken/missing I am new to this so any feedback would be great. Thanks |
…d paramters to Figure.__init__
…d paramters to Figure.__init__
Hi! Is this issue still open? If so I would love to know how to contribute! |
It is, but there also appear to be a couple open PRs as linked above. |
@shalul The issue is open, so not solved yet. But as linked above, it has an associated open pull request, i.e. a solution proposal. Therefore it does not make sense to work on this issue. Please look for another topic if you want to contribute. As a side question, we often see people who ask in the way you did above coming from a CS course? Is that true for you as well? If so, which course and did they give you instructions on how to find suitable issues, in particular identifying whether an issue has already an associated open pull request and to judge whether that pull request is still active? |
Problem
At least 2 of the arguments passed to
Figure.__init__
do not have matchingget_{kwarg}
/set_{kwarg}
methods onFigure
which makes usingfig.set(...)
inconsistent with what can be done viaFigure(...)
.xref #21549 which was motivated by this and includes an implementation of the solution (along with some additional refactoring).
Proposed solution
See #21549 for a majority of the implementation. cherry-picking commits from that branch and dropping the layout management refactoring is a very good start.
size_inches
->figsize
get/set_subplotparams
layout
->layout_engine
Labeling this as good first issue because it is limited scope and easy because there is an existing implementation. There will be a discussion of API consistency so I think familiarity with Matplotlib's explicit API would be very helpful.
The text was updated successfully, but these errors were encountered: