Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 77c33f0 + 8faef77 commit f26219bCopy full SHA for f26219b
lib/matplotlib/tight_layout.py
@@ -1,3 +1,13 @@
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
+@_api.deprecated("3.6", alternative="figure.canvas.get_renderer()")
7
+def get_renderer(fig):
8
+ canvas = fig.canvas
9
+ if canvas and hasattr(canvas, "get_renderer"):
10
+ return canvas.get_renderer()
11
+ else:
12
+ from . import backend_bases
13
+ return backend_bases._get_renderer(fig)
0 commit comments