Christopher Barker wrote:
> Eric Firing wrote:
>> I have committed a change to svn trunk, so that if you change the
>> above to
>>
>> q = plt.quiver([0],[0], [1], [1], scale_units='xy', angles='xy', scale=1)
> 
> Eric,
> 
> You might recall that I spent a bit of time making a "stick plot" with 
> quiver. I go to work OK, but I couldn't do exactly what I wanted. I 
> think gets closer, but I"m not sure it quite gets there:
> 
> How exactly are the arrows scaled with scale_units='xy'? What I'd like 
> is for the length of the arrow to the the y scale only -- the x scale it 
> irrelevant (x is time, y is velocity). Can I do that with this?

Yes, use scale_units='y'.  And I think you will want angles='uv' for 
this. This result was already available via units='y', but it was 
awkward to figure out the scale kwarg itself.  The advantage now is that 
with scale_units='y', and scale=1, an arrow with sqrt(u^2+v^2)==1 will 
be 1 y-unit long.

Eric

> 
>> (Maybe I should add "width_units", identical to "units", and deprecate 
>> the latter; this might make the meanings of the kwargs clearer.)
> 
> +1
> 
> But if you're doing that, you may want to make more changes, also -- you 
> might as well do them all at once.
> 
> -Chris
> 


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to