Skip to content

Commit 2188187

Browse files
committed
Fix problems related to streamplot in boilerplate.py
1 parent 97c264d commit 2188187

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

boilerplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def boilerplate_gen():
169169
#'spy' : 'sci(%(ret)s)', ### may return image or Line2D
170170
'quiver' : 'sci(%(ret)s)',
171171
'specgram' : 'sci(%(ret)s[-1])',
172-
'streamplot' : 'sci(%(ret)s)',
172+
'streamplot' : 'sci(%(ret)s.lines)',
173173
'tricontour' : 'if %(ret)s._A is not None: sci(%(ret)s)',
174174
'tricontourf': 'if %(ret)s._A is not None: sci(%(ret)s)',
175175
'tripcolor' : 'sci(%(ret)s)',

lib/matplotlib/pyplot.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2932,8 +2932,8 @@ def quiverkey(*args, **kw):
29322932
# changes will be lost
29332933
@_autogen_docstring(Axes.scatter)
29342934
def scatter(x, y, s=20, c='b', marker='o', cmap=None, norm=None, vmin=None,
2935-
vmax=None, alpha=None, linewidths=None, faceted=True, verts=None,
2936-
hold=None, **kwargs):
2935+
vmax=None, alpha=None, linewidths=None, verts=None, hold=None,
2936+
**kwargs):
29372937
ax = gca()
29382938
# allow callers to override the hold state by passing hold=True|False
29392939
washold = ax.ishold()
@@ -2943,8 +2943,7 @@ def scatter(x, y, s=20, c='b', marker='o', cmap=None, norm=None, vmin=None,
29432943
try:
29442944
ret = ax.scatter(x, y, s=s, c=c, marker=marker, cmap=cmap, norm=norm,
29452945
vmin=vmin, vmax=vmax, alpha=alpha,
2946-
linewidths=linewidths, faceted=faceted, verts=verts,
2947-
**kwargs)
2946+
linewidths=linewidths, verts=verts, **kwargs)
29482947
draw_if_interactive()
29492948
finally:
29502949
ax.hold(washold)

0 commit comments

Comments
 (0)