Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b13952 commit 8350febCopy full SHA for 8350feb
1 file changed
lib/matplotlib/streamplot.py
@@ -82,6 +82,8 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
82
if use_multicolor_lines:
83
assert color.shape == grid.shape
84
line_colors = []
85
+ if np.any(np.isnan(color)):
86
+ color = np.ma.array(color, mask=np.isnan(color))
87
else:
88
line_kw['color'] = color
89
arrow_kw['color'] = color
0 commit comments