On Wed, Feb 11, 2009 at 7:30 PM, John Hunter <jdh2...@gmail.com> wrote:

> On Wed, Feb 11, 2009 at 2:49 PM, Ryan May <rma...@gmail.com> wrote:
>
> > You're looking for 'xlim_changed' and 'ylim_changed'.
> >
> >  I know this can be found here:
> > http://matplotlib.sourceforge.net/api/axes_api.html
> >
> > Should we add this to
> > http://matplotlib.sourceforge.net/users/event_handling.html ?
>
> We should - perhaps you can prepare a small example ( I notice we
> don't have any) illustrating it and add a description with a pointer
> to the example in the event handling tutorial.
>
> JDH
>

Well, I checked in an example that shows the functionality.  The problem is
that using these events doesn't follow the standard event API.  You don't
connect using figure.canvas.mpl_connect() (it doesn't like the names
'xlim_changed' and 'ylim_changed'), but rather you use
Axes.callbacks.connect().  Also, the an event object is not passed into the
callback, but rather the originating axes instance.  Are these events relics
to the older version of event handling that haven't been moved to the
present?

Otherwise, should I add a special section to the event handling docs to
handle these?

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from: Norman Oklahoma United States.
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to