Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Backport PR #26649 on branch v3.8.x ([DOC] Remove "Discouraged" notices that have been superseded by deprecation) #26655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2789,12 +2789,7 @@ def get_tight_layout(self):
pending=True)
def set_tight_layout(self, tight):
"""
[*Discouraged*] Set whether and how `.tight_layout` is called when
drawing.

.. admonition:: Discouraged

This method is discouraged in favor of `~.set_layout_engine`.
Set whether and how `.tight_layout` is called when drawing.

Parameters
----------
Expand Down Expand Up @@ -2823,8 +2818,7 @@ def get_constrained_layout(self):
pending=True)
def set_constrained_layout(self, constrained):
"""
[*Discouraged*] Set whether ``constrained_layout`` is used upon
drawing.
Set whether ``constrained_layout`` is used upon drawing.

If None, :rc:`figure.constrained_layout.use` value will be used.

Expand All @@ -2833,10 +2827,6 @@ def set_constrained_layout(self, constrained):
overridden. These pads are in inches and default to 3.0/72.0.
``w_pad`` is the width padding and ``h_pad`` is the height padding.

.. admonition:: Discouraged

This method is discouraged in favor of `~.set_layout_engine`.

Parameters
----------
constrained : bool or dict or None
Expand Down