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 8e3f120 + 8334597 commit 4334ef8Copy full SHA for 4334ef8
1 file changed
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