From f8c9cfc738570c55451f4675fc70223ecdebdee9 Mon Sep 17 00:00:00 2001 From: Nelle Varoquaux Date: Tue, 14 Jan 2020 17:06:30 +0100 Subject: [PATCH] Backport PR #16212: Fix deprecation from #13544 --- lib/matplotlib/axes/_subplots.py | 2 ++ lib/matplotlib/backends/backend_pgf.py | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/matplotlib/axes/_subplots.py b/lib/matplotlib/axes/_subplots.py index fe06a7dada12..cb5529d07168 100644 --- a/lib/matplotlib/axes/_subplots.py +++ b/lib/matplotlib/axes/_subplots.py @@ -133,10 +133,12 @@ def update_params(self): return_all=True) @cbook.deprecated("3.2", alternative="ax.get_subplotspec().rowspan.start") + @property def rowNum(self): return self.get_subplotspec().rowspan.start @cbook.deprecated("3.2", alternative="ax.get_subplotspec().colspan.start") + @property def colNum(self): return self.get_subplotspec().colspan.start diff --git a/lib/matplotlib/backends/backend_pgf.py b/lib/matplotlib/backends/backend_pgf.py index bbcea4ea4b36..178465d48ad7 100644 --- a/lib/matplotlib/backends/backend_pgf.py +++ b/lib/matplotlib/backends/backend_pgf.py @@ -433,6 +433,7 @@ def __init__(self, figure, fh, dummy=False): self.__dict__["draw_image"] = lambda *args, **kwargs: None @cbook.deprecated("3.2") + @property def latexManager(self): return self._latexManager