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

Skip to content

Commit 0a1fb04

Browse files
committed
Also need to fix the title() docstring in pyplot.py
1 parent a6d49aa commit 0a1fb04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/pyplot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ def box(on=None):
11861186

11871187
def title(s, *args, **kwargs):
11881188
"""
1189-
title(label, loc='center', fontdict=None, **kwargs)
1189+
title(label, fontdict=None, loc='center', **kwargs)
11901190
11911191
Set a title of the current axes.
11921192
@@ -1198,14 +1198,14 @@ def title(s, *args, **kwargs):
11981198
----------
11991199
label : str
12001200
Text to use for the title
1201-
loc : {'center', 'left', 'right'}, str, optional
1202-
Which title to set, defaults to 'center'
12031201
fontdict : dict
12041202
A dictionary controlling the appearance of the title text,
12051203
the default `fontdict` is:
12061204
{'fontsize': rcParams['axes.titlesize'],
12071205
'verticalalignment': 'baseline',
12081206
'horizontalalignment': loc}
1207+
loc : {'center', 'left', 'right'}, str, optional
1208+
Which title to set, defaults to 'center'
12091209
12101210
Returns
12111211
-------

0 commit comments

Comments
 (0)