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

Skip to content

Commit bb6bfb1

Browse files
author
Manuel Jung
committed
rearranged docstrings.
1 parent 5435cfa commit bb6bfb1

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
@@ -3283,7 +3283,7 @@ def step(x, y, *args, **kwargs):
32833283
@_autogen_docstring(Axes.streamplot)
32843284
def streamplot(x, y, u, v, density=1, linewidth=None, color=None, cmap=None,
32853285
norm=None, arrowsize=1, arrowstyle='-|>', minlength=0.1,
3286-
maxlength=4.0, transform=None, zorder=2, start_points=None,
3286+
transform=None, zorder=2, start_points=None, maxlength=4.0,
32873287
integration_direction='both', hold=None, data=None):
32883288
ax = gca()
32893289
# allow callers to override the hold state by passing hold=True|False
@@ -3295,9 +3295,9 @@ def streamplot(x, y, u, v, density=1, linewidth=None, color=None, cmap=None,
32953295
ret = ax.streamplot(x, y, u, v, density=density, linewidth=linewidth,
32963296
color=color, cmap=cmap, norm=norm,
32973297
arrowsize=arrowsize, arrowstyle=arrowstyle,
3298-
minlength=minlength, maxlength=maxlength,
3299-
transform=transform, zorder=zorder,
3300-
start_points=start_points,
3298+
minlength=minlength, transform=transform,
3299+
zorder=zorder, start_points=start_points,
3300+
maxlength=maxlength,
33013301
integration_direction=integration_direction,
33023302
data=data)
33033303
finally:

lib/matplotlib/streamplot.py

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

0 commit comments

Comments
 (0)