arrow 1/50th the width of the plot. Change the window
> width, and the arrow length changes along with it. Zoom,
> and it does not change, however. In all cases, the arrow
> direction remains constant, regardless of window or view
> limit manipulations. (This is all because of John's
> transform magic--it is a little hard to understand at first,
> but it certainly provides wonderful functionality.)
> Hey someone said something nice about transforms!
> Eric, I haven't had a chance to try this code out but I did
> read through it and it looks very nice. A small comment:
> fig.dpi is already a Value, so I don't think you want
> + elif self.units == 'inches': + dpi = ax.figure.dpi.get() +
> dx = T.Value(dpi)
> because that is copy semantics and you probably want
> reference semantics
> + elif self.units == 'inches': + dx = ax.figure.dpi
> That way if someone changes the figure dpi. Or maybe I'm
> missing something and you really want copy.
> fig.dpi.set(72.)
> all of your transforms are automagically updated.
OK, let me try again. I added the "maybe I'm missing something"
sentence after reading through my post in the wrong place and it
totally garbled the meaning. What I meant to say was
A small comment: fig.dpi is already a Value, so I don't think you want
+ elif self.units == 'inches':
+ dpi = ax.figure.dpi.get()
+ dx = T.Value(dpi)
because that is copy semantics and you probably want reference
semantics
+ elif self.units == 'inches':
+ dx = ax.figure.dpi
That way if someone changes the figure dpi
fig.dpi.set(72.)
all of your transforms are automagically updated. Or maybe I'm missing
something and you really want copy.
JDH