Skip to content

DOC: correctly specify return type of figaspect #29545

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

Merged
merged 2 commits into from
Apr 3, 2025

Conversation

DerWeh
Copy link
Contributor

@DerWeh DerWeh commented Jan 29, 2025

PR summary

The docstring and type hint of plt.figaspect suggest that it returns a tuple of floats, while in fact it returns a NumPy array. The docstring is clarified and the type hint fixed.

This was one of the issues mentioned in the issue #29540. While this PR addresses the documentation it does not fix the issue.

PR checklist

@DerWeh
Copy link
Contributor Author

DerWeh commented Feb 3, 2025

PR should be good to merge now.

@DerWeh DerWeh requested a review from timhoffm February 5, 2025 20:01
@rcomer rcomer linked an issue Feb 13, 2025 that may be closed by this pull request
@DerWeh DerWeh requested a review from rcomer February 16, 2025 20:36
@DerWeh
Copy link
Contributor Author

DerWeh commented Mar 31, 2025

@tacaswell @timhoffm @rcomer Is there anything to be done to get this PR merged? As far as I can see, there are no more problems.

@timhoffm
Copy link
Member

timhoffm commented Apr 1, 2025

This needs a second review by a core developer, unfortunately review time is scarce.

@QuLogic QuLogic merged commit c70cd78 into matplotlib:main Apr 3, 2025
45 checks passed
@QuLogic QuLogic added this to the v3.10.2 milestone Apr 3, 2025
@QuLogic
Copy link
Member

QuLogic commented Apr 3, 2025

@meeseeksdev backport to v3.10.x

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Apr 3, 2025
QuLogic added a commit that referenced this pull request Apr 3, 2025
…545-on-v3.10.x

Backport PR #29545 on branch v3.10.x (DOC: correctly specify return type of `figaspect`)
@DerWeh DerWeh deleted the doc-figaspect branch April 3, 2025 15:42
@ksunden ksunden mentioned this pull request May 9, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: matshow(..., fignum=...) broken
5 participants