| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Thanks a lot, I think this looks good. But the new behaviour is a breaking change, so it needs an API change note (matplotlib/doc/api/next_api_changes/). You also have some PEP8 errors (see the CI that fails).
Sorry, something went wrong.
| Set *keep_observers* to True if, for example, | ||
| a gui widget is tracking the axes in the figure. | ||
| Parameters | ||
| --------- |
There was a problem hiding this comment.
Missed underline...
Sorry, something went wrong.
| """ | ||
| All dimensions are fractions of the figure width or height. | ||
| Defaults are given by :rc:`figure.subplot.[name]`. | ||
| Defaults are given by :rc:`figure.subplot.*`. |
There was a problem hiding this comment.
would leave [name]
Sorry, something went wrong.
There was a problem hiding this comment.
I don't really like any of them but I don't know a better one. I think that figure.subplot.[name] make it easier to understand what to write.
Sorry, something went wrong.
|
I think a simpler API would be to have rcParams["figure.subplot"] be a dict (xref the python-syntax matplotlibrc MEP...) and just let the user do plt.subplots_adjust(**{**rcParams["figure.subplot"], "left": ..., (whatever they want to override)})
|
Sorry, something went wrong.
|
A dict would be good but I don't think that that API are very good. |
Sorry, something went wrong.
|
I made a small change so that the test passed again. |
Sorry, something went wrong.
|
@fredrik-1 sorry this fell off our radar - be sure to ping us if you pick it up again and you want it reviewed. |
Sorry, something went wrong.
|
I'm going to close as abandoned, but feel free to re-open if wanted. Thanks for the help @fredrik-1 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I wrote some code to solve #11059
I think that these changes make it easier to work with and understand the subplot parameters without changing the interface to much.
PR Checklist