From 49ad0fc0583f27f88428650a4000d50628f5b98e Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 10 Jul 2021 04:49:15 -0400 Subject: [PATCH] Backport PR #20609: FIX: fix figbox deprecation --- lib/matplotlib/axes/_subplots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_subplots.py b/lib/matplotlib/axes/_subplots.py index b0a6dddaf355..d8595213e42f 100644 --- a/lib/matplotlib/axes/_subplots.py +++ b/lib/matplotlib/axes/_subplots.py @@ -76,10 +76,10 @@ def get_gridspec(self): return self._subplotspec.get_gridspec() @_api.deprecated( - "3.4", alternative="get_subplotspec().get_position(self.figure)") + "3.4", alternative="get_position()") @property def figbox(self): - return self.get_subplotspec().get_position(self.figure) + return self.get_position() @_api.deprecated("3.4", alternative="get_gridspec().nrows") @property