Skip to content

Commit 0ed7cf5

Browse files
added layout="compressed" for pyplot #25223 (#25234)
* layout none and compressed added in pyplot * Update lib/matplotlib/pyplot.py Co-authored-by: Jody Klymak <jklymak@gmail.com> * compressed added * fixed (89>88) error ig(?) --------- Co-authored-by: Jody Klymak <jklymak@gmail.com>
1 parent 238e275 commit 0ed7cf5

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
@@ -740,7 +740,8 @@ def figure(num=None, # autoincrement if None, else integer from 1-N
740740
clear : bool, default: False
741741
If True and the figure already exists, then it is cleared.
742742
743-
layout : {'constrained', 'tight', `.LayoutEngine`, None}, default: None
743+
layout : {'constrained', 'tight', 'compressed', \
744+
`.LayoutEngine`, None}, default: None
744745
The layout mechanism for positioning of plot elements to avoid
745746
overlapping Axes decorations (labels, ticks, etc). Note that layout
746747
managers can measurably slow down figure display. Defaults to *None*

0 commit comments

Comments
 (0)