Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0766e53

Browse files
authored
Merge pull request #11714 from fredrik-1/doc_Figure_tight_layout
docstring for Figure.tight_layout don't include renderer parameter
2 parents 4b1f956 + d14f3d1 commit 0766e53

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,10 @@ def tight_layout(self, renderer=None, pad=1.08, h_pad=None, w_pad=None,
23242324
23252325
Parameters
23262326
----------
2327-
pad : float
2327+
renderer : subclass of `~.backend_bases.RendererBase`, optional
2328+
Defaults to the renderer for the figure.
2329+
2330+
pad : float, optional
23282331
Padding between the figure edge and the edges of subplots,
23292332
as a fraction of the font size.
23302333
h_pad, w_pad : float, optional
@@ -2334,6 +2337,11 @@ def tight_layout(self, renderer=None, pad=1.08, h_pad=None, w_pad=None,
23342337
A rectangle (left, bottom, right, top) in the normalized
23352338
figure coordinate that the whole subplots area (including
23362339
labels) will fit into. Default is (0, 0, 1, 1).
2340+
2341+
See Also
2342+
--------
2343+
.Figure.set_tight_layout
2344+
.pyplot.tight_layout
23372345
"""
23382346

23392347
from .tight_layout import (

0 commit comments

Comments
 (0)