diff --git a/.gitignore b/.gitignore index 4eac81ffd4a51bfef478bdf7e10a05f3c8af1161..fa441bddd30b5d7a828c4906c0fb8a696eafe189 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ jube_job_output.txt +*.csv +*.pdf +*.png diff --git a/post/plotting.py b/post/plotting.py old mode 100644 new mode 100755 index cb976b2dacc4af29222e9b5b5df6ddd511eac852..cc7d02d2c6ac322169a9b2a4d4174ae64bd77176 --- a/post/plotting.py +++ b/post/plotting.py @@ -18,9 +18,10 @@ if __name__ == "__main__": with open(filename) as f: plots = csv.reader(f, delimiter=",") - for row in plots: - x.append(int(row[0])) - y.append(int(row[1])) + for index, row in enumerate(plots): + if index != 0: + x.append(int(row[0])) + y.append(int(row[1])) fig, ax = matplotlib.pyplot.subplots() ax.plot(x, y)