9951 explained code solutions for 126 technologies


python-matplotlibHow to draw a vector


import matplotlib.pyplot as plt
plt.quiver(0.1,0.2,scale=1)
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.quiver(

plots arrow(s)

0.1,0.2

arrow direction

scale=1

set arrow length

.show()

render chart in a separate window