| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Each Artist keeps a reference to `Axes._children.remove` as `art._remove_method`. If we replace the `_children` instance on the Axes with a different list instance the Artists will not be updated and their remove method will refer to the wrong list. This will cause subsequent failures on the next draw because on remove we reset the `art.axes` and `art.figure` to None. xref https://discourse.matplotlib.org/t/host-subplot-and-artist-remove/23374
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
git checkout v3.6.x git pull
git cherry-pick -x -m1 4d52a3e6feffb091e737da1c06943ebd80d67c25
git commit -am 'Backport PR #24677: FIX: do not replace the Axes._children list object'
git push YOURFORK v3.6.x:auto-backport-of-pr-24677-on-v3.6.x
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the Still Needs Manual Backport label once the PR gets merged. If these instructions are inaccurate, feel free to suggest an improvement. |
Sorry, something went wrong.
…list object Manual backport due to conflicts, which were just additional tests in main from matplotlib#23861, so simply removed these.
Backport PR #24677 on branch v3.6.x (FIX: do not replace the Axes._children list object)
| Back | FazBrowse Home | New Git URL |
PR Summary
Each Artist keeps a reference to Axes._children.remove as art._remove_method. If we replace the _children instance on the Axes with a different list instance the Artists will not be updated and their remove method will refer to the wrong list. This will cause subsequent failures on the next draw because on remove we reset the art.axes and art.figure to None.
xref https://discourse.matplotlib.org/t/host-subplot-and-artist-remove/23374
PR Checklist
Documentation and Tests