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 6e4a684

Browse filesBrowse files
authored
Merge pull request #26655 from meeseeksmachine/auto-backport-of-pr-26649-on-v3.8.x
Backport PR #26649 on branch v3.8.x ([DOC] Remove "Discouraged" notices that have been superseded by deprecation)
2 parents c37cf41 + 8e782fa commit 6e4a684
Copy full SHA for 6e4a684

File tree

1 file changed

+2
-12
lines changed
Filter options

1 file changed

+2
-12
lines changed

‎lib/matplotlib/figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
+2-12Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,12 +2789,7 @@ def get_tight_layout(self):
27892789
pending=True)
27902790
def set_tight_layout(self, tight):
27912791
"""
2792-
[*Discouraged*] Set whether and how `.tight_layout` is called when
2793-
drawing.
2794-
2795-
.. admonition:: Discouraged
2796-
2797-
This method is discouraged in favor of `~.set_layout_engine`.
2792+
Set whether and how `.tight_layout` is called when drawing.
27982793
27992794
Parameters
28002795
----------
@@ -2823,8 +2818,7 @@ def get_constrained_layout(self):
28232818
pending=True)
28242819
def set_constrained_layout(self, constrained):
28252820
"""
2826-
[*Discouraged*] Set whether ``constrained_layout`` is used upon
2827-
drawing.
2821+
Set whether ``constrained_layout`` is used upon drawing.
28282822
28292823
If None, :rc:`figure.constrained_layout.use` value will be used.
28302824
@@ -2833,10 +2827,6 @@ def set_constrained_layout(self, constrained):
28332827
overridden. These pads are in inches and default to 3.0/72.0.
28342828
``w_pad`` is the width padding and ``h_pad`` is the height padding.
28352829
2836-
.. admonition:: Discouraged
2837-
2838-
This method is discouraged in favor of `~.set_layout_engine`.
2839-
28402830
Parameters
28412831
----------
28422832
constrained : bool or dict or None

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.