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

Skip to content

Commit ed8889f

Browse files
committed
fix the doc string to reference data coords
1 parent c35d391 commit ed8889f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/streamplot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
5353
*minlength* : float
5454
Minimum length of streamline in axes coordinates.
5555
*start_points*: Nx2 array
56-
Coordinates of starting points for the streamlines. In array coordinates.
56+
Coordinates of starting points for the streamlines.
57+
In data coordinates, the same as the ``x`` and ``y`` arrays.
5758
*zorder* : int
5859
any number
5960
@@ -135,7 +136,7 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
135136
# Convert start_points from data to array coords
136137
# Shift the seed points from the bottom left of the data so that
137138
# data2grid works properly.
138-
sp2 = np.asanyarray(start_points, copy=True)
139+
sp2 = np.asanyarray(start_points).copy()
139140
sp2[:,0] += np.abs(x[0])
140141
sp2[:,1] += np.abs(y[0])
141142
for xs, ys in sp2:

0 commit comments

Comments
 (0)