myvec.mywire¶
-
myvec.
mywire
(u, v, x=None, y=None, rowstep=1, colstep=1)[source]¶ Plot a 2D vector field as 3D wire-frame using Matplotlib’s plot_wireframe
Parameters: u : NumPy 2darray
x components of the vector field w(x,y) = (u(x,y),v(x,y)). Note that u has to be a 2D array of the same dimension as v.
v : NumPy 2darray
y components of the vector field w(x,y) = (u(x,y),v(x,y)). Note that v has to be a 2D array of the same dimension as u.
x : NumPy 2darray
2D grid array of x-values on the domain of w(x,y). By default it is assumed that w is defined on [1,N]-by-[1,N]
y : NumPy 2darray
2D grid array of y-values on the domain of w(x,y). By default it is assumed that w is defined on [1,N]-by-[1,N]
rowstep : int
Array row stride (step size) used to generate the wire-frame plot (see plot_wireframe‘s documentation for details). Default value is 1.
colstep : int
Array column stride (step size) used to generate the wire-frame plot (see plot_wireframe‘s documentation for details). Default value is 1.
Returns: Nothing : None
See also
plot_wireframe
- in the Matplotlib documentation