myvec.mygrid¶
-
myvec.
mygrid
(u, v, x=None, y=None, rowstep=16, colstep=16, interpolation='lanczos')[source]¶ Plot a 2D vector field as deformed grid on a 2D lattice
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 grid. Default value is 16.
colstep : int
Array column stride (step size) used to generate the grid. Default value is 16.
interpolation : str
Interpolation to be used for plotting. Default value is “lanczos”. Recommended other values are “bilinear” or “nearest”. See Matplotlib’s imshow-documentation for details.
Returns: Nothing : None
See also
imshow
- in the Matplotlib documentation