Computational Physics, Linear Algebra, Python, Math, Physics.
plt.axhline(y=0, color='#A9A9A9', zorder=0) for i in range(len(vecs)): if (isinstance(alpha, list)): alpha_i = alpha[i] else: alpha_i = alpha x = np.concatenate([[0,0],vecs[i]]) plt.quiver([x[0]], [x[1]], [x[2]], [x[3]], angles='xy', scale_units='xy', scale=1, color=cols[i], alpha=alpha_i) Example