On Tue, Nov 25, 2008 at 12:28 PM, John Hunter <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 25, 2008 at 12:16 PM, John Hunter <[EMAIL PROTECTED]> wrote:
>> pan/zoom appears to be broken in the sharex axis demo.  If you do a
>> zoom to rect on ax2 or ax3 in
>> examples/pylab_examples/shared_axis_demo.py the event seems to be
>> swallowed, though a zoom in ax1 is respected.
>
> The problem appears to be in the backend_bases
> NavigationToolbar2.release_zoom method.  I have updated svn r6447 with
>
>            # JDH: I don't know why this is here but I expect to be
>            # able to zoomo on any axis that is shared.  This was
>            # breaking zoom-to-rect on shared_axis_demo if the zoom
>            # happened in ax2 or ax3 so i am replacing the continue
>            # with a pass until this is sorted out
>            if a._sharex or a._sharey:
>                #continue
>                pass
>
> If anyone knows why the continue was/should be there, speak up!

OK, I think I see where this came in.  I did an svnmerge the other day
from the branch, and merged in Michael's change:

  r6365 | mdboom | 2008-11-05 09:15:28 -0600 (Wed, 05 Nov 2008) | 1 line

  Fix bug in zoom rectangle with twin axes

Michael, perhaps you can comment on this bugfix on the branch, and
whether this change or something like it should be in the trunk?  I
see the trunk has some additional logic that the branch does not have:

            # detect twinx,y axes and avoid double zooming
            twinx, twiny = False, False
            if last_a:
                for la in last_a:
                    if a.get_shared_x_axes().joined(a,la): twinx=True
                    if a.get_shared_y_axes().joined(a,la): twiny=True


JDH

-------------------------------------------------------------------------
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to