Skip to content

Commit

Permalink
DOC: Better explain suptitle / supxlabel / supylabel naming
Browse files Browse the repository at this point in the history
  • Loading branch information
timhoffm committed Oct 24, 2024
1 parent ed8131b commit 07b5c93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit 07b5c93

Please sign in to comment.