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

Skip to content

Commit cc0c5d6

Browse files
committed
Merge pull request #5567 from QuLogic/streamplot-zorder
FIX/API: Change streamplot default zorder to 2.
2 parents 10cb842 + 9c506df commit cc0c5d6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4442,7 +4442,7 @@ def stackplot(self, x, *args, **kwargs):
44424442
label_namer=None)
44434443
def streamplot(self, x, y, u, v, density=1, linewidth=None, color=None,
44444444
cmap=None, norm=None, arrowsize=1, arrowstyle='-|>',
4445-
minlength=0.1, transform=None, zorder=1, start_points=None):
4445+
minlength=0.1, transform=None, zorder=2, start_points=None):
44464446
if not self._hold:
44474447
self.cla()
44484448
stream_container = mstream.streamplot(self, x, y, u, v,

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3368,7 +3368,7 @@ def step(x, y, *args, **kwargs):
33683368
@_autogen_docstring(Axes.streamplot)
33693369
def streamplot(x, y, u, v, density=1, linewidth=None, color=None, cmap=None,
33703370
norm=None, arrowsize=1, arrowstyle='-|>', minlength=0.1,
3371-
transform=None, zorder=1, start_points=None, hold=None, data=None):
3371+
transform=None, zorder=2, start_points=None, hold=None, data=None):
33723372
ax = gca()
33733373
# allow callers to override the hold state by passing hold=True|False
33743374
washold = ax.ishold()

lib/matplotlib/streamplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
2323
cmap=None, norm=None, arrowsize=1, arrowstyle='-|>',
24-
minlength=0.1, transform=None, zorder=1, start_points=None):
24+
minlength=0.1, transform=None, zorder=2, start_points=None):
2525
"""Draws streamlines of a vector flow.
2626
2727
*x*, *y* : 1d arrays

0 commit comments

Comments
 (0)