s On Wed, Sep 17, 2008 at 2:50 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > One thing I forgot to mention is that, in the Text class, draw() > method calls _draw_bbox() method. If I call the _draw_bbox() methods > after gc in draw() is created, then _draw_bbox call somehow changes > the gc in the original draw() method, which I think is not supposed to > happen. I haven't looked at this carefully, but this might only happen > in some specific backends (I'm using GtkCairo). Anyhow, as a > workaround, in the draw() method, _draw_bbox() is called before the gc > is created.
I am not sure why the gc is being modified, but an alternative is to get a new gc and then copy the properties newgc = renderer.new_gc() newgc.copy_properties(oldgc) This might be a less brittle solution since in the distant future we may not remember why the drawing order had t be the way it is. JDH 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