I want to have multiple arrows on the same plot using the list I6. In I6[0], (0.5, -0.5) represent x,y coordinate of the arrow base and (1.0, 0.0) represent the length of the arrow along x,y direction. The meanings are the same for I6[1],I6[2],I6[3] But the code runs into an error.
import matplotlib.pyplot as plt
I6=[[(0.5, -0.5), (1.0, 0.0)], [(0.5, -0.5), (0.0, -1.0)], [(1.5, -0.5), (0.0, -1.0)], [(0.5, -1.5), (1.0, 0.0)]]
for i in range(0,len(I6)):
plt.arrow(I6[i][0], I6[i][1], width = 0.05)
plt.show()
The error is
in <module>
plt.arrow(I6[i][0], I6[i][1], width = 0.05)
TypeError: arrow() missing 2 required positional arguments: 'dx' and 'dy'


