4.3 Vectors
Vectors describe directed quantities in physics, such as forces or field strengths. For the representation of vectors, the Matplotlib module provides the quiver([X,Y],U,V, [C],**kwargs) method.
The [X,Y] list sets the initial coordinates of the vector. The U parameter determines the x-component, while the V parameter determines the y-component of the vector arrow. If you omit the [X,Y] parameter, then the start of the arrow is automatically placed at the origin of the coordinate system, and the arrowhead points to the specified u-v coordinate. The C parameter allows you to set the color of the vector arrow. The optional parameter **kwargs provides supplementary properties.
More information on this topic is available at https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.quiver.html ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access