Skip to content
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

[ENH]: Support SubFigure.remove() #26593

Closed
anntzer opened this issue Aug 24, 2023 · 2 comments · Fixed by #27362
Closed

[ENH]: Support SubFigure.remove() #26593

anntzer opened this issue Aug 24, 2023 · 2 comments · Fixed by #27362
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Aug 24, 2023

Problem

Currently SubFigures cannot be remove()d from the parent figure. The API would be more consistent if that was possible.

Proposed solution

Implement SubFigure.remove().

@fernandaitoda
Copy link

Hi, can you explain with details what this new feature would be able to do? maybe a sample code to show what were you trying to do

@jklymak
Copy link
Member

jklymak commented Sep 25, 2023

sfig.remove() would remove the subfigure and all its children from the figure. Note that our removal machinery is non-trivial, but doing something similar as what is done for axes should work. I'm not 100% sure how the tree gets traversed.

If someone works on this, it would be nice to write up your notes so we can document how remove is meant to work.

@QuLogic QuLogic added this to the v3.9.0 milestone Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants