|
From: Gary R. <gr...@bi...> - 2006-05-18 22:16:15
|
Hi Jordan,
When I zoom, if the x and y zooms are not locked you will still get the
problem you mention with my modified arrows. They're still just patches
locked to the current x and y coordinates.
I've attached my modified Arrow() in case you want to look at it. It
requires a change to quiver in axes.py too to add the arrowstyle
parameter and pass it through but you can just ignore that stuff and
remove the arrowstyle references if you want to try it out. The changes
just keep the arrow head length fixed and adjust the length of the arrow
shaft until it gets so short that it becomes necessary to start scaling
down the width in proportion with the length (I'm not sure if that makes
sense).
Gary
Jordan Dawe wrote:
<snip>
> Wow, serendipitously I'm working on exactly the same thing at the
> moment. Question: when you zoom, do you ensure that the x-direction in
> your window is the same length as the y-direction? My current theory on
> this is the distorted arrows are the result of quiver measuring
> everything in the x-y space of the plot, instead of in absolute terms.
> Setting axis('equal') or axis('scaled') seems to improve the arrow
> appearance...
>
> Jordan
|