Skip to content

Commit e292197

Browse files
authored
Merge pull request matplotlib#26649 from timhoffm/remove-discouraged
[DOC] Remove "Discouraged" notices that have been superseded by deprecation
2 parents 45a97b0 + 03651fc commit e292197

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

lib/matplotlib/figure.py

Lines 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)