Re: [Matplotlib-users] Enter Figure on Macs

2010-02-16 Thread Michiel de Hoon
Thanks! That was at least part of the problem. I've committed a bug fix to the svn repository. Thanks gain, --Michiel. --- On Mon, 2/15/10, John Hunter wrote: > From: John Hunter > Subject: Re: [Matplotlib-users] Enter Figure on Macs > To: "Michiel de Hoon&qu

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-15 Thread Michiel de Hoon
uteError: 'NoneType' object has no attribute 'canvas' So I guess I should pass some type of event object to enter|leave_notify_event. --Michiel. --- On Sun, 2/14/10, David Arnold wrote: > From: David Arnold > Subject: Re: [Matplotlib-users] Enter Figure on Ma

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-15 Thread John Hunter
On Mon, Feb 15, 2010 at 6:50 AM, Michiel de Hoon wrote: > I almost have a solution for this for the Mac OS X backend. I am stuck though > at what I should pass to enter_notify_event and leave_notify_event for the > guiEvent: > >    def leave_notify_event(self, guiEvent=None): >        """ >    

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-14 Thread David Arnold
John, Only the wxagg worked. Here is the output: $HOME=/Users/darnold CONFIGDIR=/Users/darnold/.matplotlib matplotlib data path /Library/Frameworks/Python.framework/Versions/6.0.0/lib/python2.6/site-packages/matplotlib/mpl-data loaded rc file /Users/darnold/.matplotlib/matplotlibrc matplotlib ve

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-14 Thread John Hunter
On Sun, Feb 14, 2010 at 6:53 PM, David Arnold wrote: > All, > > Any Mac users out there? This script from the User Guide does not seem to > recognize entering or leaving a figure. Any thoughts? My Mac is currently dead, but I developed these events while I was a mac user and so am pretty sure th

[Matplotlib-users] Enter Figure on Macs

2010-02-14 Thread David Arnold
All, Any Mac users out there? This script from the User Guide does not seem to recognize entering or leaving a figure. Any thoughts? # enterleave.py import matplotlib.pyplot as plt def enter_axes(event): print 'enter_axes', event.inaxes event.inaxes.patch.set_facecolor('yellow') ev