From 03651fc6cd6c025c12896d5a2c8ba1921d628d48 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Wed, 30 Aug 2023 22:25:19 +0200 Subject: [PATCH] [DOC] Remove "Discouraged" notices that have been superseded by deprecation --- lib/matplotlib/figure.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 4361ef655c81..5c115c868187 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -2788,12 +2788,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 ---------- @@ -2822,8 +2817,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. @@ -2832,10 +2826,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