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
ENH: Allow to register standalone figures with pyplot
It may be fundamentally nice not to have to create the figure
though pyplot to be able to use it in pyplot afterwards. You can now do
```
from matplotlib.figure import Figure
import matplotlib.pyplot as plt
fig = Figure()
fig.subplots().plot([1, 3, 2])
plt.figure(fig) # fig is now tracked in pyplot
plt.show()
```
This also opens up the possibility to more dynamically track
and untrack figures in pyplot, which opens up the road to
optimized figure tracking in pyplot (#29849)
0 commit comments