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

Skip to content

Commit 6df5f27

Browse files
RishabhSparkmeeseeksmachine
authored andcommitted
Backport PR #25234: added layout="compressed" for pyplot #25223
1 parent e4e4709 commit 6df5f27

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 1 deletion
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)