Conversation
…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).
There was a problem hiding this comment.
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
rcomer
left a comment
There was a problem hiding this comment.
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.
|
Superseeded by #29382. |
PR summary
PR checklist