Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from matplotlib import pyplot as plt
- import sys
- def read(path):
- x, y = [], []
- for line in open(path):
- line_val = line.split()
- x.append(float(line_val[0]))
- y.append(float(line_val[1]))
- return x, y
- def main():
- x, y = read(sys.argv[1])
- plt.plot(x, y)
- plt.show()
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment