Bug : get backend() clears figures from Gcf.figs if they were created under rc context Bug summary
Bug : get backend() clears figures from Gcf.figs if they were created under rc context Bug summary: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). calling matplotlib.get backend() removes all figures from Gcf if the first figure in Gcf.figs was created in an rc context .
The task
calling `matplotlib.get_backend()` removes all figures from `Gcf` if the *first* figure in `Gcf.figs` was created in an `rc_context`.
Part of Lego-X/Lego-RL-SWE-Bench-Verified.