-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[MNT]: Refactor data limit handling #28816
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
Comments
Also related to #28101 (comment) and issues linked therein. |
Note: We have a mechanism for collections : https://matplotlib.org/devdocs/api/collections_api.html#matplotlib.collections.Collection.get_datalim |
Can I work on this issue? |
@gabisoaresm everybody is welcome to contribute. However, for this issue, you should have relevant experience in API design and refactoring. Currently, only the high-level goal is given. Part of the task here is to Analyse the code base and decide how this can be modified to achieve the goal. |
Summary
Currently, the approach is calling
_AxesBase.update_datalim
in the plot factory functions with an array of points (often with an already reduced list[(xmin, ymin), (xmax, ymax)]
but not always. The information is ad-hoc generated in the factory function.Proposed fix
We should switch to pushing the logic for data limit evaluation into the Artists. Then the plot factory functions only query the created Artist for their limits and pass that on.
The text was updated successfully, but these errors were encountered: