Skip to content

Commit 3e173f9

Browse files
authored
Merge pull request #25260 from meeseeksmachine/auto-backport-of-pr-25234-on-v3.7.x
Backport PR #25234 on branch v3.7.x (added layout="compressed" for pyplot #25223)
2 parents e4e4709 + 6df5f27 commit 3e173f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/pyplot.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,8 @@ def figure(num=None, # autoincrement if None, else integer from 1-N
741741
clear : bool, default: False
742742
If True and the figure already exists, then it is cleared.
743743
744-
layout : {'constrained', 'tight', `.LayoutEngine`, None}, default: None
744+
layout : {'constrained', 'tight', 'compressed', \
745+
`.LayoutEngine`, None}, default: None
745746
The layout mechanism for positioning of plot elements to avoid
746747
overlapping Axes decorations (labels, ticks, etc). Note that layout
747748
managers can measurably slow down figure display. Defaults to *None*

0 commit comments

Comments
 (0)