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

Skip to content

Commit 314f5be

Browse files
authored
Merge pull request #20975 from anntzer/s2d
Clarify support for 2D coordinate inputs to streamplot.
2 parents a19324c + 608a930 commit 314f5be

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)