rcomer on main
DOC: cleanup constrained layout… Merge pull request #25144 from … (compare)
Cadairwith the hashes you would only need to generate ones if they didn't match
Cadairwhich is maybe another simplifying assumption that we can get away with that mpl core wouldn't be abel to
matplotlib/__init__.pyand then ask people to not do
import matplotlib.pyplot as plt. That will instantly raise if they accidentally cut-and-paste some pyplot code in.
fig = mpl.figure.Figure(); ax = fig.subplots()and get a figure fully managed by you (we hold no references to it)
mpl.useso why can't we manage the backend?
plt.figurewe are creating a Figure, a canvas (of the correct GUI class), a manager, a window, a toolbar, and registering the manger with our global registry of open figures