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

Skip to content

Commit 3d18f5a

Browse files
authored
Merge pull request #20981 from meeseeksmachine/auto-backport-of-pr-20975-on-v3.5.x
Backport PR #20975 on branch v3.5.x (Clarify support for 2D coordinate inputs to streamplot.)
2 parents dfe8ed8 + 880ebc5 commit 3d18f5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/streamplot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
2626
Parameters
2727
----------
2828
x, y : 1D/2D arrays
29-
Evenly spaced strictly increasing arrays to make a grid.
29+
Evenly spaced strictly increasing arrays to make a grid. If 2D, all
30+
rows of *x* must be equal and all columns of *y* must be equal; i.e.,
31+
they must be as if generated by ``np.meshgrid(x_1d, y_1d)``.
3032
u, v : 2D arrays
3133
*x* and *y*-velocities. The number of rows and columns must match
3234
the length of *y* and *x*, respectively.

0 commit comments

Comments
 (0)