From 07b5c93460540e09e266e3083969b90a103a7db3 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Thu, 24 Oct 2024 09:19:48 +0200 Subject: [PATCH] DOC: Better explain suptitle / supxlabel / supylabel naming Closes #13388. --- lib/matplotlib/figure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index d3623d1e82b8..87ce2c550982 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -378,7 +378,7 @@ def _suplabels(self, t, info, **kwargs): self.stale = True return suplab - @_docstring.Substitution(x0=0.5, y0=0.98, name='suptitle', ha='center', + @_docstring.Substitution(x0=0.5, y0=0.98, name='super title', ha='center', va='top', rc='title') @_docstring.copy(_suplabels) def suptitle(self, t, **kwargs): @@ -393,7 +393,7 @@ def get_suptitle(self): text_obj = self._suptitle return "" if text_obj is None else text_obj.get_text() - @_docstring.Substitution(x0=0.5, y0=0.01, name='supxlabel', ha='center', + @_docstring.Substitution(x0=0.5, y0=0.01, name='super xlabel', ha='center', va='bottom', rc='label') @_docstring.copy(_suplabels) def supxlabel(self, t, **kwargs): @@ -408,7 +408,7 @@ def get_supxlabel(self): text_obj = self._supxlabel return "" if text_obj is None else text_obj.get_text() - @_docstring.Substitution(x0=0.02, y0=0.5, name='supylabel', ha='left', + @_docstring.Substitution(x0=0.02, y0=0.5, name='super ylabel', ha='left', va='center', rc='label') @_docstring.copy(_suplabels) def supylabel(self, t, **kwargs):