#!/usr/bin/python -Wall # ================================================================ # John Kerl # kerl at math dot arizona dot edu # 2009-10-08 # Please see http://math.arizona.edu/~kerl/doc/python-talk.pdf for # more information. # ================================================================ import tabutil import pylab import sys input_file_name = '-' # Read from standard input if len(sys.argv) == 2: input_file_name = sys.argv[1] [us, vs] = tabutil.float_columns_from_file('-') pylab.figure() pylab.plot(us,vs) pylab.show()