changeset 169:f62ac9a27a1f

handle sys.stdin case
author Jeff Hammel <k0scist@gmail.com>
date Wed, 20 May 2015 12:45:54 -0700
parents 7603829e7610
children 31a004976411
files numerics/plot.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/plot.py	Tue May 19 19:51:11 2015 -0700
+++ b/numerics/plot.py	Wed May 20 12:45:54 2015 -0700
@@ -121,8 +121,7 @@
     plot_fcn = plt.scatter if options.scatter else plt.plot
 
     # read data
-    all_data = [read(open(f)) # quick hack
-                for f in options.input]
+    all_data = [read(f) for f in options.input]
 
     # color map
     # http://stackoverflow.com/questions/12236566/setting-different-color-for-each-series-in-scatter-plot-on-matplotlib