Revision: 8029
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8029&view=rev
Author: jouni
Date: 2009-12-13 19:59:15 +0000 (Sun, 13 Dec 2009)
Log Message:
-----------
Fix figimage test to really exercise both branches in figure.draw
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/tests/test_image.py
Modified: trunk/matplotlib/lib/matplotlib/tests/test_image.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/tests/test_image.py 2009-12-13 19:28:22 UTC
(rev 8028)
+++ trunk/matplotlib/lib/matplotlib/tests/test_image.py 2009-12-13 19:59:15 UTC
(rev 8029)
@@ -35,16 +35,16 @@
for suppressComposite in False, True:
fig = plt.figure(figsize=(2,2), dpi=100)
- fig.suppressComposite=suppressComposite
+ fig.suppressComposite = suppressComposite
x,y = np.ix_(np.arange(100.0)/100.0, np.arange(100.0)/100.0)
z = np.sin(x**2 + y**2 - x*y)
c = np.sin(20*x**2 + 50*y**2)
img = z + c/5
fig.figimage(img, xo=0, yo=0, origin='lower')
- fig.figimage(img, xo=0, yo=100, origin='upper')
+ fig.figimage(img[::-1,:], xo=0, yo=100, origin='lower')
fig.figimage(img[:,::-1], xo=100, yo=0, origin='lower')
- fig.figimage(img[:,::-1], xo=100, yo=100, origin='upper')
+ fig.figimage(img[::-1,::-1], xo=100, yo=100, origin='lower')
fig.savefig('figimage-%d' % int(suppressComposite), dpi=100)
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins