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

Skip to content

Commit b77effe

Browse files
committed
Change streamplot to default to color in color_cycle.
1 parent 9c51448 commit b77effe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/streamplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
5555
dmap = DomainMap(grid, mask)
5656

5757
if color is None:
58-
color = matplotlib.rcParams['lines.color']
58+
color = axes._get_lines.color_cycle.next()
5959

6060
if linewidth is None:
6161
linewidth = matplotlib.rcParams['lines.linewidth']

0 commit comments

Comments
 (0)