Skip to content

Commit 6e60725

Browse files
authored
Merge pull request #29016 from timhoffm/doc-suptitle
DOC: Better explain suptitle / supxlabel / supylabel naming
2 parents 1f0ddbe + 07b5c93 commit 6e60725

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/figure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def _suplabels(self, t, info, **kwargs):
378378
self.stale = True
379379
return suplab
380380

381-
@_docstring.Substitution(x0=0.5, y0=0.98, name='suptitle', ha='center',
381+
@_docstring.Substitution(x0=0.5, y0=0.98, name='super title', ha='center',
382382
va='top', rc='title')
383383
@_docstring.copy(_suplabels)
384384
def suptitle(self, t, **kwargs):
@@ -393,7 +393,7 @@ def get_suptitle(self):
393393
text_obj = self._suptitle
394394
return "" if text_obj is None else text_obj.get_text()
395395

396-
@_docstring.Substitution(x0=0.5, y0=0.01, name='supxlabel', ha='center',
396+
@_docstring.Substitution(x0=0.5, y0=0.01, name='super xlabel', ha='center',
397397
va='bottom', rc='label')
398398
@_docstring.copy(_suplabels)
399399
def supxlabel(self, t, **kwargs):
@@ -408,7 +408,7 @@ def get_supxlabel(self):
408408
text_obj = self._supxlabel
409409
return "" if text_obj is None else text_obj.get_text()
410410

411-
@_docstring.Substitution(x0=0.02, y0=0.5, name='supylabel', ha='left',
411+
@_docstring.Substitution(x0=0.02, y0=0.5, name='super ylabel', ha='left',
412412
va='center', rc='label')
413413
@_docstring.copy(_suplabels)
414414
def supylabel(self, t, **kwargs):

0 commit comments

Comments
 (0)