Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0170e35

Browse filesBrowse files
committed
DOC
1 parent ea90b80 commit 0170e35
Copy full SHA for 0170e35

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎lib/matplotlib/figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
+7-1Lines 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:: Discouraged
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.