Skip to content

Fix 29381 title position #29391

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

Closed

Conversation

aydinomer00
Copy link

PR summary

PR checklist

…itioning

- Add new public method get_title_top() to calculate title position
- Implement specialized versions for PolarAxes and GeoAxes
- Add tests for different projections
- Update _adjust_title_position to use the new method

This change allows subclasses to customize title positioning by
overriding get_title_top(), fixing the title position issue in
polar plots (matplotlib#29381).
…itioning

- Add new public method get_title_top() to calculate title position
- Implement specialized versions for PolarAxes and GeoAxes
- Add tests for different projections
- Update _adjust_title_position to use the new method
- Improve documentation and code clarity

This change allows subclasses to customize title positioning by
overriding get_title_top(), fixing the title position issue in
polar plots (matplotlib#29381).
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.

- Fix code style issues
- Add test fixtures
- Improve documentation
- Clean up whitespace and formatting
- Fix test stub errors
Copy link
Member

@rcomer rcomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @aydinomer00, thank you for your interest in improving Matplotlib. I think you are looking to address #29385. My apologies, I made a mistake in that issue. Instead of _adjust_title_position I should have said _update_title_position. This is an already existing method which already has code to calculate top. The idea was to factor that code into a new method but keep the logic the same.

Cartopy is a separate project and changes for GeoAxes would be added within the Cartopy project in future. We should not add a Cartopy module in Matplotlib.

I also see changes here that are unrelated to the title positioning problem, particularly in the tests. Those should not be made here.

@timhoffm
Copy link
Member

Superseeded by #29382.

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.

4 participants