You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
Activity
anntzer commentedon Sep 19, 2024
Also related to #28101 (comment) and issues linked therein.
timhoffm commentedon Sep 20, 2024
Note: We have a mechanism for collections : https://matplotlib.org/devdocs/api/collections_api.html#matplotlib.collections.Collection.get_datalim
And
Axes.add_collectionwill use this depending on theautolimparameter`.gabisoaresm commentedon Oct 19, 2024
Can I work on this issue?
timhoffm commentedon Oct 19, 2024
@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.