Skip to content

Commit f08355c

Browse files
committed
Remove hard-coded streamplot zorder and let mlinesLine2D.zorder to be the default
1 parent 8ff57bb commit f08355c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4613,9 +4613,12 @@ def stackplot(self, x, *args, **kwargs):
46134613
label_namer=None)
46144614
def streamplot(self, x, y, u, v, density=1, linewidth=None, color=None,
46154615
cmap=None, norm=None, arrowsize=1, arrowstyle='-|>',
4616-
minlength=0.1, transform=None, zorder=2, start_points=None):
4616+
minlength=0.1, transform=None, zorder=None,
4617+
start_points=None):
46174618
if not self._hold:
46184619
self.cla()
4620+
if zorder is None:
4621+
zorder = mlines.Line2D.zorder
46194622
stream_container = mstream.streamplot(self, x, y, u, v,
46204623
density=density,
46214624
linewidth=linewidth,

0 commit comments

Comments
 (0)