|
From: vwf <vw...@vu...> - 2013-08-16 07:48:55
|
On Thu, Aug 15, 2013 at 09:06:02PM +0200, vwf wrote: [...] > On stackoverflow I found: > widths = np.linspace(0, 2, X.size) > plt.quiver(X, Y, cos(deg), sin(deg), linewidths=widths) [...] I kind of found out how it works. quiver has width and linewidth. width takes a scalar, linewidth can take a vector. width sets the width of the shaft, linewidth sets the width of the edge... How it works precisely I do not know yet, but this works for me: plt.quiver(x_vector,y_vector,u_vector,v_vector, linewidth=w_vector, width=0.001, headwidth=3, color=mycolor, edgecolors=mycolor) Cheers |