Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8588f29

Browse files
authored
DOC: correct title_fontsize docstring
1 parent 122575c commit 8588f29

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/legend.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ def _update_bbox_to_anchor(self, loc_in_canvas):
230230
title : str or None
231231
The legend's title. Default is no title (``None``).
232232
233-
title_fontsize: str or None
234-
The fontsize of the legend's title. Default is the default fontsize.
233+
title_fontsize: int or {'xx-small', 'x-small', 'small', 'medium', 'large', \
234+
'x-large', 'xx-large'}, default: :rc:`legend.title_fontsize`
235+
The font size of the legend's title.
235236
236237
borderpad : float, default: :rc:`legend.borderpad`
237238
The fractional whitespace inside the legend border, in font-size units.
@@ -314,7 +315,7 @@ def __init__(self, parent, handles, labels,
314315
# box, none use rc
315316
shadow=None,
316317
title=None, # set a title for the legend
317-
title_fontsize=None, # set to ax.fontsize if None
318+
title_fontsize=None, # the font size for the title
318319
framealpha=None, # set frame alpha
319320
edgecolor=None, # frame patch edgecolor
320321
facecolor=None, # frame patch facecolor

0 commit comments

Comments
 (0)