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

Add Figure methods get_suptitle(), get_subxlabel(), get_supylabel() #25686

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
oscargus merged 1 commit into matplotlib:main from timhoffm:get_suptitle
Apr 17, 2023

Conversation

Copy link
Member

@timhoffm timhoffm commented Apr 14, 2023

PR Summary

We had no public API to optain these values. The API is modelled analogous to Axes.get_title() / Axes.get_x/ylabel(), i.e. returning a string (and not the Text object) and returning an empty string if no text has been set yet.

Side remark. It's historic and unfortunate that the setters don't have the set_ prefix (in contrast to e.g. set_title()). Nevertheless get_* is the only sane choice for the getters introduced here.

@oscargus oscargus merged commit 2d0c3ba into matplotlib:main Apr 17, 2023
@timhoffm timhoffm deleted the get_suptitle branch April 17, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@jklymak jklymak jklymak left review comments

@QuLogic QuLogic QuLogic approved these changes

@oscargus oscargus oscargus approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.8.0
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /