From 1d529de04fa1965ce5e6cd12324ff56d9c1b15f2 Mon Sep 17 00:00:00 2001 From: Ruth Comer <10599679+rcomer@users.noreply.github.com> Date: Sun, 28 May 2023 14:33:54 +0100 Subject: [PATCH] Backport PR #25992: Document that GridSpec.get_subplot_params ignores gridspec.figure. --- lib/matplotlib/gridspec.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/matplotlib/gridspec.py b/lib/matplotlib/gridspec.py index d4eecaf4b5a2..ee045ced315e 100644 --- a/lib/matplotlib/gridspec.py +++ b/lib/matplotlib/gridspec.py @@ -419,6 +419,8 @@ def get_subplot_params(self, figure=None): - non-*None* attributes of the GridSpec - the provided *figure* - :rc:`figure.subplot.*` + + Note that the ``figure`` attribute of the GridSpec is always ignored. """ if figure is None: kw = {k: mpl.rcParams["figure.subplot."+k]