Revision: 5773
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5773&view=rev
Author:   astraw
Date:     2008-07-17 17:06:52 +0000 (Thu, 17 Jul 2008)

Log Message:
-----------
update nan example to demonstrate bug

Modified Paths:
--------------
    trunk/matplotlib/examples/pylab_examples/nan_test.py

Modified: trunk/matplotlib/examples/pylab_examples/nan_test.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/nan_test.py        2008-07-17 
12:47:22 UTC (rev 5772)
+++ trunk/matplotlib/examples/pylab_examples/nan_test.py        2008-07-17 
17:06:52 UTC (rev 5773)
@@ -1,12 +1,14 @@
 #!/usr/bin/env python
 """
-Example: simple line plot with NaNs inserted.
+Example: simple line plots with NaNs inserted.
 """
 from pylab import *
 
 t = arange(0.0, 1.0+0.01, 0.01)
 s = cos(2*2*pi*t)
 t[41:60] = NaN
+
+subplot(2,1,1)
 plot(t, s, '-', lw=2)
 
 xlabel('time (s)')
@@ -14,4 +16,14 @@
 title('A sine wave with a gap of NaNs between 0.4 and 0.6')
 grid(True)
 
+subplot(2,1,2)
+t[0] = NaN
+t[-1] = NaN
+plot(t, s, '-', lw=2)
+
+xlabel('time (s)')
+ylabel('voltage (mV)')
+title('More NaNs at 0.0 and 1.0')
+grid(True)
+
 show()


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