Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c506df

Browse filesBrowse files
committed
Change streamplot default zorder to 2.
Way back before streamplot gained the zorder kwarg, it used the LineCollection's default zorder, which was 2, but when the kwarg was added, it defaulted to 1. So switch streamplot zorder from 1 back to 2 for consistency.
1 parent 10cb842 commit 9c506df
Copy full SHA for 9c506df

File tree

Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/streamplot.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.