On Tuesday 10 February 2004 9:30 pm, John Hunter wrote:
> Unfortunately Jeremy, there now appears to be a bug in wx. I can't
> tell if it was something I did or something that was there already,
> because with wx swallowing the exceptions, I can't find it! I also
> added a few more debug print messages to functions that don't have
> them already, but still couldn't track it down. Sorry for the
> trouble.
I have found the location of the error, but have not yet determined how the
problem arises:
Basically, when savefig() is called by the script, the first draw_rectangle()
call fails an assert gc.OK() statement. I have not determined why Python is
not receiving the AssertException - my conjecture is that the call to gc.Ok()
is causing an exception in the C++ code - I will probably have to use a debug
version of the wx libraries and a debugger to verify this.
The stack frame when the exception is raised is:
__main__ #40
matplotlib.matlab.savefig #798
matplotlib.backends.backend_wx #812
matplotlib.artist.draw #86
matplotlib.figure._draw #65
matplotlib.artist.draw #86
matplotlib.patches._draw #76
matplotlib.patches._derived_draw #154
matplotlib.backends.backend_wx #403
I'll let you know how I get on...
Jeremy
|