Revision: 6380
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6380&view=rev
Author:   jdh2358
Date:     2008-11-09 00:24:29 +0000 (Sun, 09 Nov 2008)

Log Message:
-----------
commited jae joons 2nd patch; figimage still sems broken for origin=up

Modified Paths:
--------------
    trunk/matplotlib/examples/pylab_examples/layer_images.py
    trunk/matplotlib/lib/matplotlib/axes.py

Modified: trunk/matplotlib/examples/pylab_examples/layer_images.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/layer_images.py    2008-11-09 
00:18:40 UTC (rev 6379)
+++ trunk/matplotlib/examples/pylab_examples/layer_images.py    2008-11-09 
00:24:29 UTC (rev 6380)
@@ -27,17 +27,19 @@
 extent = xmin, xmax, ymin, ymax
 Z1 = array(([0,1]*4 + [1,0]*4)*4); Z1.shape = 8,8  # chessboard
 im1 = imshow(Z1, cmap=cm.gray, interpolation='nearest',
-             extent=extent)
+             extent=extent, origin='lower')
 hold(True)
 
 Z2 = func3(X, Y)
 
 im2 = imshow(Z2, cmap=cm.jet, alpha=.9, interpolation='bilinear',
-             extent=extent)
+             extent=extent, origin='lower')
 #axis([xmin, xmax, ymin, ymax])
 
 
-#savefig('layer_images')
+savefig('layer_images.png')
+savefig('layer_images.svg')
+savefig('layer_images.pdf')
 
 show()
 

Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py     2008-11-09 00:18:40 UTC (rev 
6379)
+++ trunk/matplotlib/lib/matplotlib/axes.py     2008-11-09 00:24:29 UTC (rev 
6380)
@@ -1537,9 +1537,11 @@
                    for im in self.images if im.get_visible()]
 
             #flip the images if their origin is "upper"
-            if self.images[0].origin=='upper':
-                im.flipud_out()
+            for _im, (im,_,_) in zip(self.images, ims):
+                if _im.origin=="upper":
+                    im.flipud_out()
 
+
             l, b, r, t = self.bbox.extents
             width = mag*((round(r) + 0.5) - (round(l) - 0.5))
             height = mag*((round(t) + 0.5) - (round(b) - 0.5))


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

-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to