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

Skip to content

Commit cc7e3a4

Browse files
committed
DOC added kwargs and tight_layout description in plt.figure
1 parent db8cdf2 commit cc7e3a4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,16 @@ def figure(num=None, # autoincrement if None, else integer from 1-N
450450
clear : bool, default: False
451451
If True and the figure already exists, then it is cleared.
452452
453+
tight_layout : bool or dict, default: :rc:`figure.autolayout`
454+
If ``False`` use *subplotpars*. If ``True`` adjust subplot
455+
parameters using `.tight_layout` with default padding.
456+
When providing a dict containing the keys ``pad``, ``w_pad``,
457+
``h_pad``, and ``rect``, the default `.tight_layout` paddings
458+
will be overridden.
459+
460+
**kwargs : optional
461+
See `~.matplotlib.figure.Figure` for other possible arguments.
462+
453463
Returns
454464
-------
455465
figure : `~matplotlib.figure.Figure`

0 commit comments

Comments
 (0)