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

Skip to content

Commit 660d2ef

Browse files
author
Manuel Jung
committed
rearranged docstrings.
1 parent 24efc00 commit 660d2ef

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/matplotlib/pyplot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3268,7 +3268,7 @@ def step(x, y, *args, **kwargs):
32683268
@_autogen_docstring(Axes.streamplot)
32693269
def streamplot(x, y, u, v, density=1, linewidth=None, color=None, cmap=None,
32703270
norm=None, arrowsize=1, arrowstyle='-|>', minlength=0.1,
3271-
maxlength=4.0, transform=None, zorder=2, start_points=None,
3271+
transform=None, zorder=2, start_points=None, maxlength=4.0,
32723272
integration_direction='both', hold=None, data=None):
32733273
ax = gca()
32743274
# allow callers to override the hold state by passing hold=True|False
@@ -3280,9 +3280,9 @@ def streamplot(x, y, u, v, density=1, linewidth=None, color=None, cmap=None,
32803280
ret = ax.streamplot(x, y, u, v, density=density, linewidth=linewidth,
32813281
color=color, cmap=cmap, norm=norm,
32823282
arrowsize=arrowsize, arrowstyle=arrowstyle,
3283-
minlength=minlength, maxlength=maxlength,
3284-
transform=transform, zorder=zorder,
3285-
start_points=start_points,
3283+
minlength=minlength, transform=transform,
3284+
zorder=zorder, start_points=start_points,
3285+
maxlength=maxlength,
32863286
integration_direction=integration_direction,
32873287
data=data)
32883288
finally:

lib/matplotlib/streamplot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
5353
See :class:`~matplotlib.patches.FancyArrowPatch`.
5454
*minlength* : float
5555
Minimum length of streamline in axes coordinates.
56-
*maxlength* : float
57-
Maximum length of streamline in axes coordinates.
5856
*start_points*: Nx2 array
5957
Coordinates of starting points for the streamlines.
6058
In data coordinates, the same as the ``x`` and ``y`` arrays.
61-
*integration_direction* : ['foward','backward','both']
62-
Integrate the streamline in forward, backward or both directions.
6359
*zorder* : int
6460
any number
61+
*maxlength* : float
62+
Maximum length of streamline in axes coordinates.
63+
*integration_direction* : ['foward','backward','both']
64+
Integrate the streamline in forward, backward or both directions.
6565
6666
Returns:
6767

0 commit comments

Comments
 (0)