From 9068638d9e61f349da46ad5e5111b27dd1342cc7 Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Thu, 8 Jul 2021 15:42:01 -0700 Subject: [PATCH] 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 beefc077f703..f92d08440ea5 100644 --- a/lib/matplotlib/axes/_subplots.py +++ b/lib/matplotlib/axes/_subplots.py @@ -64,10 +64,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