Revision: 4113
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4113&view=rev
Author:   efiring
Date:     2007-11-05 11:54:49 -0800 (Mon, 05 Nov 2007)

Log Message:
-----------
make step_demo use npyma

Modified Paths:
--------------
    trunk/matplotlib/examples/step_demo.py

Modified: trunk/matplotlib/examples/step_demo.py
===================================================================
--- trunk/matplotlib/examples/step_demo.py      2007-11-05 19:49:27 UTC (rev 
4112)
+++ trunk/matplotlib/examples/step_demo.py      2007-11-05 19:54:49 UTC (rev 
4113)
@@ -1,5 +1,6 @@
 import numpy as npy
-from pylab import *
+from matplotlib.numerix import npyma as ma
+from matplotlib.pyplot import step, legend, xlim, ylim, show
 
 x = npy.arange(1, 7, 0.4)
 y0 = npy.sin(x)
@@ -13,7 +14,7 @@
 y -= 0.5
 step(x, y, where='post', label='post')
 
-y = npy.ma.masked_where((y0>-0.15)&(y0<0.15), y - 0.5)
+y = ma.masked_where((y0>-0.15)&(y0<0.15), y - 0.5)
 step(x,y, label='masked (pre)')
 
 legend()
@@ -22,3 +23,4 @@
 ylim(-0.5, 4)
 
 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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to