matplotlib.pyplot.quiver(*args, data=None, **kw)[source]¶Plot a 2-D field of arrows.
Call signatures:
quiver(U, V, **kw)
quiver(U, V, C, **kw)
quiver(X, Y, U, V, **kw)
quiver(X, Y, U, V, C, **kw)
U and V are the arrow data, X and Y set the location of the arrows, and C sets the color of the arrows. These arguments may be 1-D or 2-D arrays or sequences.
If X and Y are absent, they will be generated as a uniform grid.
If U and V are 2-D arrays and X and Y are 1-D, and if len(X) and
len(Y) match the column and row dimensions of U, then X and Y will be
expanded with numpy.meshgrid().
The default settings auto-scales the length of the arrows to a reasonable size. To change this behavior see the scale and scale_units kwargs.
The defaults give a slightly swept-back arrow; to make the head a triangle, make headaxislength the same as headlength. To make the arrow more pointed, reduce headwidth or increase headlength and headaxislength. To make the head smaller relative to the shaft, scale down all the head parameters. You will probably do best to leave minshaft alone.
linewidths and edgecolors can be used to customize the arrow outlines.
| Parameters: |
|
|---|
See also
quiverkeyNotes
Additional PolyCollection
keyword arguments:
Property Description agg_filtera filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alphafloat or None animatedbool antialiasedbool or sequence of bools arrayndarray capstyle{'butt', 'round', 'projecting'} clima length 2 sequence of floats; may be overridden in methods that have vminandvmaxkwargs.clip_boxBboxclip_onbool clip_path[( Path,Transform) |Patch| None]cmapcolormap or registered colormap name colormatplotlib color arg or sequence of rgba tuples containscallable edgecolorcolor or sequence of colors facecolorcolor or sequence of colors figureFiguregidstr hatch{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} in_layoutbool joinstyle{'miter', 'round', 'bevel'} labelobject linestyle{'-', '--', '-.', ':', '', (offset, on-off-seq), ...} linewidthfloat or sequence of floats normNormalizeoffset_position{'screen', 'data'} offsetsfloat or sequence of floats path_effectsAbstractPathEffectpickerNone or bool or float or callable pickradiusunknown rasterizedbool or None sketch_params(scale: float, length: float, randomness: float) snapbool or None transformTransformurlstr urlsList[str] or None visiblebool zorderfloat
matplotlib.pyplot.quiver¶