On Mon, Aug 11, 2008 at 1:31 PM, Jonathan Helmus <[EMAIL PROTECTED]> wrote:
>

[snip]

> instance...> which I use to add lines, set limits, etc but it doesn't
> have any of the pan functions (start_pan, end_pan, etc).
> self.canvas.figure.get_axes() (which is what seems to be used in the
> NavigationToolbar2 class) returns the same Subplot instance. Any
> suggestions of how to get a axes/Subplot instance which has the pan
> functions?

Hi Jonathan,

On earlier versions of Matplotlib, you can use the NavigationToolbar2
class without actually displaying it (the toolbar) in your program.
Instead you can use your custom buttons, keypresses, etc, to tie into
the class' methods.  We've done that with our app, and it works quite
nicely.  In fact, you can borrow the bits you need from that class to
create your own zoom/pan routines.

Cheers,
Anthony.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to