Flavio Coelho wrote:
> Hi,
> 
> I am tring to figure out how to use the c argument to the quiver2 function.
> 
> I want to be able to color my arrows proportionally to their size.
> 
> I have tried this and it doesn' t work as I imagined:
> 
> c = sqrt((array(u)-array(x))**2+(array(v)-array(y))**2)

The length of the arrow is proportional to sqrt(u**2 + v**2),
not to sqrt((u-x)**2 + (v-y)**2).

Is the reason you are not getting what you expect?

Eric

> 
> quiver2(x,y,u,v,c)
> 
> the docstring on quiver2 is not clear on how c works, any help will be 
> appreciated.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to