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

Skip to content

Remove hard-coded streamplot zorder kwarg #7188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 28, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove hard-coded streamplot zorder and let mlinesLine2D.zorder to …
…be the default
  • Loading branch information
bcongdon committed Sep 27, 2016
commit f08355c93f3e262fdec808a88279c91a60aa2c1b
5 changes: 4 additions & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4613,9 +4613,12 @@ def stackplot(self, x, *args, **kwargs):
label_namer=None)
def streamplot(self, x, y, u, v, density=1, linewidth=None, color=None,
cmap=None, norm=None, arrowsize=1, arrowstyle='-|>',
minlength=0.1, transform=None, zorder=2, start_points=None):
minlength=0.1, transform=None, zorder=None,
start_points=None):
if not self._hold:
self.cla()
if zorder is None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be moved to the streamplot module, to have the function streamplot from there coherent with this one.
The documentation should also be updated.

zorder = mlines.Line2D.zorder
stream_container = mstream.streamplot(self, x, y, u, v,
density=density,
linewidth=linewidth,
Expand Down