Commit ead55f040749778f102112166d0e94a6b31233b9
1 parent
1e6ef8e72e
Exists in
master
plot
Showing 1 changed file with 18 additions and 0 deletions Inline Diff
lab3/plot.py
View file @
ead55f0
File was created | 1 | #!/usr/bin/python | ||
2 | #-*-coding:utf8-*- | |||
3 | from sys import argv | |||
4 | from pylab import * | |||
5 | ||||
6 | if __name__ == "__main__": | |||
7 | if len(argv) != 2: | |||
8 | print "Usage: python", argv[0], " matrix.dat" | |||
9 | exit (0) | |||
10 | ||||
11 | ||||
12 | f = open ( argv[1] , 'r') | |||
13 | A = [ map(float,line.split()) for line in f ] | |||
14 |