Revision: 8030
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8030&view=rev
Author:   jouni
Date:     2009-12-13 20:24:23 +0000 (Sun, 13 Dec 2009)

Log Message:
-----------
Fix AttributeError in figure.draw when compositing images

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/figure.py

Modified: trunk/matplotlib/lib/matplotlib/figure.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/figure.py   2009-12-13 19:59:15 UTC (rev 
8029)
+++ trunk/matplotlib/lib/matplotlib/figure.py   2009-12-13 20:24:23 UTC (rev 
8030)
@@ -755,11 +755,12 @@
 
         # override the renderer default if self.suppressComposite
         # is not None
-        composite = renderer.option_image_nocomposite()
+        not_composite = renderer.option_image_nocomposite()
         if self.suppressComposite is not None:
-            composite = self.suppressComposite
+            not_composite = self.suppressComposite
 
-        if len(self.images)<=1 or composite or not allequal([im.origin for im 
in self.images]):
+        if len(self.images)<=1 or not_composite or \
+                not allequal([im.origin for im in self.images]):
             for a in self.images:
                 dsu.append( (a.get_zorder(), a.draw, [renderer]))
         else:
@@ -783,8 +784,7 @@
                 renderer.draw_image(gc, l, b, im)
                 gc.restore()
 
-            if len(ims):
-                dsu.append((ims[0].get_zorder(), draw_composite, []))
+            dsu.append((self.images[0].get_zorder(), draw_composite, []))
 
         # render the axes
         for a in self.axes:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to