comparison plotss.py @ 56:91b476ebc0f2

Run through 2to3
author Daniel O'Connor <doconnor@gsoft.com.au>
date Tue, 08 Dec 2020 14:00:45 +1030
parents 3c01bd3f2786
children
comparison
equal deleted inserted replaced
55:ad5942d22f78 56:91b476ebc0f2
30 pylab.plot(xdata, ydata, linestyle='solid', marker='.') 30 pylab.plot(xdata, ydata, linestyle='solid', marker='.')
31 pylab.show() 31 pylab.show()
32 32
33 if __name__ == "__main__": 33 if __name__ == "__main__":
34 if len(sys.argv) < 2: 34 if len(sys.argv) < 2:
35 print "Need at least one file to plot" 35 print("Need at least one file to plot")
36 sys.exit(1) 36 sys.exit(1)
37 37
38 for fn in sys.argv[1:]: 38 for fn in sys.argv[1:]:
39 doplot(fn) 39 doplot(fn)
40 40