Hello list,

I get an error, when calling "ax.redraw_in_frame()" (see below).

I think this is due to the fact that the draw_wrapper expects args instead of 
kwargs for the "draw" of an Axes instance and therefore provide a patch, 
which adds an additional star.

Could any of the developers have a look at it, please?

Kind regards,
Matthias


#---------------------------------------------------------------------------- 
 File "textbox2_mod.py", line 37, in redraw
    self.ax.redraw_in_frame()
  
File "/scratch/michler/SOFT//lib/python2.5/site-packages/matplotlib/axes.py", 
line 1795, in redraw_in_frame
    self.draw(self._cachedRenderer, inframe=True)
TypeError: draw_wrapper() got an unexpected keyword argument 'inframe'
Index: lib/matplotlib/artist.py
===================================================================
--- lib/matplotlib/artist.py	(revision 8171)
+++ lib/matplotlib/artist.py	(working copy)
@@ -49,10 +49,10 @@
         if artist.get_rasterized():
             renderer.stop_rasterizing()
 
-    # the axes class has a second argument inframe for its draw method.
-    def draw_wrapper(artist, renderer, *kl):
+    # the axes class has a second keyword-argument inframe for its draw method.
+    def draw_wrapper(artist, renderer, **kl):
         before(artist, renderer)
-        draw(artist, renderer, *kl)
+        draw(artist, renderer, **kl)
         after(artist, renderer)
 
     # "safe wrapping" to exactly replicate anything we haven't overridden above
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to