Revision: 7869
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7869&view=rev
Author:   astraw
Date:     2009-10-11 19:08:32 +0000 (Sun, 11 Oct 2009)

Log Message:
-----------
testing: add test_axes.test_imshow()

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/tests/test_axes.py

Modified: trunk/matplotlib/lib/matplotlib/tests/test_axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/tests/test_axes.py  2009-10-11 19:03:14 UTC 
(rev 7868)
+++ trunk/matplotlib/lib/matplotlib/tests/test_axes.py  2009-10-11 19:08:32 UTC 
(rev 7869)
@@ -364,6 +364,22 @@
     ax.plot(x, y)
     fig.savefig('nonfinite_limits')
 
+...@image_comparison(baseline_images=['imshow'])
+def test_imshow():
+    #Create a NxN image
+    N=100
+    (x,y) = np.indices((N,N))
+    x -= N/2
+    y -= N/2
+    r = np.sqrt(x**2+y**2-x*y)
+
+    #Create a contour plot at N/4 and extract both the clip path and transform
+    fig = plt.figure()
+    ax = fig.add_subplot(111)
+
+    ax.imshow(r)
+    fig.savefig('imshow')
+
 if __name__=='__main__':
     import nose
     nose.runmodule(argv=['-s','--with-doctest'], exit=False)


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

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to