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