Revision: 7951
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7951&view=rev
Author:   leejjoon
Date:     2009-11-11 23:59:23 +0000 (Wed, 11 Nov 2009)

Log Message:
-----------
drawing images respect zorder among images even for noncomposite backend

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

Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py     2009-11-10 21:03:51 UTC (rev 
7950)
+++ trunk/matplotlib/lib/matplotlib/axes.py     2009-11-11 23:59:23 UTC (rev 
7951)
@@ -1727,9 +1727,12 @@
             # make a composite image blending alpha
             # list of (mimage.Image, ox, oy)
 
+            zorder_images = [(im.zorder, im) for im in self.images \
+                             if im.get_visible()]
+            zorder_images.sort()
+            
             mag = renderer.get_image_magnification()
-            ims = [(im.make_image(mag),0,0)
-                   for im in self.images if im.get_visible()]
+            ims = [(im.make_image(mag),0,0) for z,im in zorder_images]
 
 
             l, b, r, t = self.bbox.extents


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to