rcomer on main
DOC: cleanup constrained layout… Merge pull request #25144 from … (compare)
Cadair
with the hashes you would only need to generate ones if they didn't match
Cadair
*png
Cadair
which is maybe another simplifying assumption that we can get away with that mpl core wouldn't be abel to
plt.figure
, and plt.subplots
into matplotlib/__init__.py
and 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.use
so why can't we manage the backend?
plt.figure
we 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
_pylab_helper.Gcf
class? Are there other hooks to pyplot
in there? I'm certainly not saying get rid of pyplot, so if someone did import pyplot and do plt.gcf()
that should be fine and could raise the last created figure. But if they didn't import pyplot
they would protect themselves from plt.pcolormesh