8000 Small cleanups · matplotlib/matplotlib@b996fc7 · GitHub
[go: up one dir, main page]

Skip to content

Commit b996fc7

Browse files
committed
Small cleanups
1 parent d8f6bd5 commit b996fc7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/matplotlib/streamplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
116116
line_colors = []
117117
color = np.ma.masked_invalid(color)
118118
else:
119-
line_kw['colors'] = color
119+
line_kw['color'] = color
120120
arrow_kw['color'] = color
121121

122122
if isinstance(linewidth, np.ndarray):

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,10 +704,6 @@ def _update_scalarmappable(sm):
704704
copy_state = sm._update_dict['array']
705705
ret = sm.update_scalarmappable()
706706
if copy_state:
707-
# if sm.get_fill():
708-
# sm._facecolor3d = sm._facecolors
709-
# elif not cbook._str_lower_equal(sm._original_facecolor, "none"):
710-
# sm._edgecolor3d = sm._edgecolors
711707
if sm._face_is_mapped:
712708
sm._facecolor3d = sm._facecolors
713709
elif sm._edge_is_mapped: # Should this be plain "if"?

0 commit comments

Comments
 (0)
0