Blame view
lab3/plot.py
341 Bytes
ead55f040 plot |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/usr/bin/python #-*-coding:utf8-*- from sys import argv from pylab import * if __name__ == "__main__": if len(argv) != 2: print "Usage: python", argv[0], " matrix.dat" exit (0) f = open ( argv[1] , 'r') A = [ map(float,line.split()) for line in f ] figure(1) imshow(A, interpolation='nearest') |
9cad13733 MAJ |
17 |
#grid(True) |
ead55f040 plot |
18 |
show() |