Skip to content

Centralize data limit evaluation in Artist class (#28816) #28996

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
wants to merge 1 commit into from
Closed

Centralize data limit evaluation in Artist class (#28816) #28996

wants to merge 1 commit into from

Conversation

gabisoaresm
Copy link

PR summary

This pull request implements the centralization of data limit calculation logic into the Artist subclasses. The aim is to move the responsibility for calculating the data limits to each specific Artist, such as Line2D, Rectangle, Circle, and other subclasses. This change allows for the data limit logic to be maintained locally in each class, facilitating reuse and ensuring consistency in data limit calculation.

This change addresses the issue described in #28816, which requests refactoring to move the logic directly into the Artists, eliminating duplicated logic and making the code more modular.

PR checklist

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.

@jklymak
Copy link
Member

jklymak commented Oct 20, 2024

This pr claims to have changed 14k files and more than 4 million lines of code. Presumably something went wrong with your commit that you will have to fix on your end before we can reasonably review this.

I'd also suggest you include more discussion about how this is going to work because this is a pretty fundamental change that requires careful design

@rcomer
Copy link
Member

rcomer commented Oct 20, 2024

I'm going to mark this as "draft" for now. Please mark it as "ready for review" when you are ready. In the meantime, if you need help, feel free to ask questions here. Or you may prefer to ask them in our incubator gitter room.

@rcomer rcomer marked this pull request as draft October 20, 2024 16:04
@gabisoaresm gabisoaresm deleted the issue28816 branch October 20, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants