10000 DOC · matplotlib/matplotlib@0170e35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0170e35

Browse files
committed
DOC
1 parent ea90b80 commit 0170e35

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2490,6 +2490,10 @@ def set_tight_layout(self, tight):
24902490
"""
24912491
Set whether and how `.tight_layout` is called when drawing.
24922492
2493+
.. admonition:: Disc 97E2 ouraged
2494+
2495+
This method is discouraged in favor of `~.set_layout_engine`.
2496+
24932497
Parameters
24942498
----------
24952499
tight : bool or dict with keys "pad", "w_pad", "h_pad", "rect" or None
@@ -2525,7 +2529,9 @@ def set_constrained_layout(self, constrained):
25252529
overridden. These pads are in inches and default to 3.0/72.0.
25262530
``w_pad`` is the width padding and ``h_pad`` is the height padding.
25272531
2528-
See :doc:`/tutorials/intermediate/constrainedlayout_guide`.
2532+
.. admonition:: Discouraged
2533+
2534+
This method is discouraged in favor of `~.set_layout_engine`.
25292535
25302536
Parameters
25312537
----------

0 commit comments

Comments
 (0)
0