Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0a1fb04

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.