SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: John H. <jdh...@ac...> - 2004年02月10日 21:44:41
I just made a minor change in the backend API. The faceColor argument
(formerly a color arg) for draw_rectangle, draw_arc, etc... is now a
graphics context instance. I updated all the backends in CVS. 
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.
Note to any wx savvy readers! Jeremy and I have been struggling over
the tendency of wx to eat exceptions in a way that we can't recover.
If anyone knows how to disable this in wxpython, please contact us.
JDH
From: David M. <da...@sj...> - 2004年02月10日 23:04:26
> 
> Note to any wx savvy readers! Jeremy and I have been struggling over
> the tendency of wx to eat exceptions in a way that we can't recover.
> If anyone knows how to disable this in wxpython, please contact us.
> 
> JDH
> 
> 
This might put you on the right track:
http://lists.wxwindows.org/archive/wxPython-users/msg10801.html
HTH,
David Moore
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 2004年02月06日
From: Jeremy O'D. <je...@o-...> - 2004年02月11日 19:57:52
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
From: Todd M. <jm...@st...> - 2004年02月12日 21:01:59
Attachments: backend_paint.patch
On Tue, 2004年02月10日 at 16:30, John Hunter wrote:
> I just made a minor change in the backend API. The faceColor argument
> (formerly a color arg) for draw_rectangle, draw_arc, etc... is now a
> graphics context instance. I updated all the backends in CVS. 
> 
Hi John,
I'm working with Perry Greenfield's group on a Tkinter/Paint backend for
matplotlib. I noticed today that the paint facecolor had changed to
black. Looking into it, there were a few more edits to
backend_paint.py needed as a result of the interface change above. I
also noticed that the paint version of draw_polygons needed a little
code to get it working. Attached is a patch for both.
Regards,
Todd
-- 
Todd Miller <jm...@st...>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /