We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54360f3 commit 2f49642Copy full SHA for 2f49642
lib/matplotlib/tight_layout.py
@@ -1,3 +1,16 @@
1
from matplotlib._tight_layout import * # noqa: F401, F403
2
from matplotlib import _api
3
_api.warn_deprecated("3.6", name=__name__, obj_type="module")
4
+
5
6
+# To be removed with the module
7
+def get_renderer(fig):
8
+ if fig._cachedRenderer:
9
+ return fig._cachedRenderer
10
+ else:
11
+ canvas = fig.canvas
12
+ if canvas and hasattr(canvas, "get_renderer"):
13
+ return canvas.get_renderer()
14
15
+ from . import backend_bases
16
+ return backend_bases._get_renderer(fig)
0 commit comments