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

Skip to content

Commit cc95248

Browse files
committed
Removed misleading returns in xscale() and yscale().
svn path=/trunk/matplotlib/; revision=8957
1 parent 708c451 commit cc95248

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,10 +1131,9 @@ def xscale(*args, **kwargs):
11311131
%(scale_docs)s
11321132
"""
11331133
ax = gca()
1134-
ret = ax.set_xscale(*args, **kwargs)
1134+
ax.set_xscale(*args, **kwargs)
11351135
draw_if_interactive()
1136-
return ret
1137-
1136+
11381137
@docstring.dedent_interpd
11391138
def yscale(*args, **kwargs):
11401139
"""
@@ -1149,10 +1148,9 @@ def yscale(*args, **kwargs):
11491148
%(scale_docs)s
11501149
"""
11511150
ax = gca()
1152-
ret = ax.set_yscale(*args, **kwargs)
1151+
ax.set_yscale(*args, **kwargs)
11531152
draw_if_interactive()
1154-
return ret
1155-
1153+
11561154
def xticks(*args, **kwargs):
11571155
"""
11581156
Set/Get the xlimits of the current ticklocs and labels::

0 commit comments

Comments
 (0)