constrained zoom

One more thought on interactive zoom. As I was trying out the
interactive zoom (not zoom to rect, but right click on pan zoom) on
some image data, I noticed that it would be useful to have some
constraints on the zoom

  - zoom only on x. Already the x zoom is determined by the amount of
    movement in the horizontal direction, but it would be nice to be
    able to ignore the y direction. Candidate key modifier: 'x'

  - zoom only on y. ditto. Candidate key modifier: 'y'

  - preserve axes aspect ratio. Candidate key modifier: ??. I think
    some apps use a SHIFT or a CTRL modifier for this. Is there any
    consensus or common practice?

JDH

-----Message d'origine-----
De : matplotlib-devel-admin@lists.sourceforge.net
[mailto:matplotlib-devel-admin@lists.sourceforge.net] De la
part de John Hunter
Envoyé : lundi 26 juillet 2004 21:26
À : matplotlib-devel@lists.sourceforge.net
Objet : [matplotlib-devel] constrained zoom

One more thought on interactive zoom. As I was trying out
the interactive zoom (not zoom to rect, but right click on
pan zoom) on some image data, I noticed that it would be
useful to have some constraints on the zoom

  - zoom only on x. Already the x zoom is determined by the amount of
    movement in the horizontal direction, but it would be nice to be
    able to ignore the y direction. Candidate key modifier: 'x'

  - zoom only on y. ditto. Candidate key modifier: 'y'

  - preserve axes aspect ratio. Candidate key modifier: ??. I think
    some apps use a SHIFT or a CTRL modifier for this. Is there any
    consensus or common practice?

Yes, this will be very usefull! Add the group of axis (all of them react
to pan/zoom/zoom_to_rect of any of them, and it would be the ultimate
plot navigation tool :slight_smile: I go for shift for the last one (could even do
the 3 in one, kind of like power point snap to grid, except grid would
be 0/45/90 direction. I think powerpoint and many drawing program (adobe
illustrator, corel draw) act like that :slight_smile: