Revision: 7777
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7777&view=rev
Author:   mdboom
Date:     2009-09-17 20:00:23 +0000 (Thu, 17 Sep 2009)

Log Message:
-----------
Add test for non-finite limits

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

Added Paths:
-----------
    
trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/nonfinite_limits.png

Added: 
trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/nonfinite_limits.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/nonfinite_limits.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: trunk/matplotlib/lib/matplotlib/tests/test_axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/tests/test_axes.py  2009-09-17 17:06:02 UTC 
(rev 7776)
+++ trunk/matplotlib/lib/matplotlib/tests/test_axes.py  2009-09-17 20:00:23 UTC 
(rev 7777)
@@ -354,8 +354,16 @@
     ax.hexbin(x, y, extent=[.1, .3, .6, .7])
     fig.savefig('hexbin_extent')
 
+...@image_comparison(baseline_images=['nonfinite_limits'])
+def test_nonfinite_limits():
+    x = np.arange(0., np.e, 0.01)
+    y = np.log(x)
+    x[len(x)/2] = np.nan
+    fig = plt.figure()
+    ax = fig.add_subplot(111)
+    ax.plot(x, y)
+    fig.savefig('nonfinite_limits')
 
-
 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® 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/devconf
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to