From 7a2ef00214dc54aaabeddfc0e17101a15706860e Mon Sep 17 00:00:00 2001 From: Jayesh Badwaik <j.badwaik@fz-juelich.de> Date: Tue, 18 Feb 2025 10:02:24 +0100 Subject: [PATCH] - fixed bugs in plotting --- .gitignore | 3 +++ post/plotting.py | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) mode change 100644 => 100755 post/plotting.py diff --git a/.gitignore b/.gitignore index 4eac81f..fa441bd 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 cb976b2..cc7d02d --- 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) -- GitLab