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
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
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):
> """
>
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
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
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