diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-06-29 16:48:51 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-06-29 16:48:51 +0200 |
commit | f12bedbb5c2ff3d079eff57dd33d8a4132272f14 (patch) | |
tree | 14d68b112977fe31febdc2db9b05ff9097b1a524 /lib | |
parent | ef236ac1c716470913d76fac856dbb2da89e15fe (diff) |
plotter: remove txt output
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/plotter.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/plotter.py b/lib/plotter.py index b7f47c0..65555cb 100755 --- a/lib/plotter.py +++ b/lib/plotter.py @@ -229,10 +229,10 @@ def plot_param( YY2.append(v["Y"]) sanitized_k = legend_sanitizer.sub("_", str(k)) - with open("{}_{}.txt".format(data_filename_base, sanitized_k), "w") as f: - print("X Y", file=f) - for i in range(len(v["X"])): - print("{} {}".format(v["X"][i], v["Y"][i]), file=f) + # with open("{}_{}.txt".format(data_filename_base, sanitized_k), "w") as f: + # print("X Y", file=f) + # for i in range(len(v["X"])): + # print("{} {}".format(v["X"][i], v["Y"][i]), file=f) # x_range = int((v['X'].max() - v['X'].min()) * 10) # xsp = np.linspace(v['X'].min(), v['X'].max(), x_range) @@ -254,12 +254,12 @@ def plot_param( YY.append(ysp) YY_legend.append(legend_sanitizer.sub("_", "symb_{}".format(k))) - with open(function_filename, "w") as f: - print(" ".join(YY_legend), file=f) - for elem in np.array(YY).T: - print(" ".join(map(str, elem)), file=f) - print(data_filename_base, function_filename) + # with open(function_filename, "w") as f: + # print(" ".join(YY_legend), file=f) + # for elem in np.array(YY).T: + # print(" ".join(map(str, elem)), file=f) + if output: plt.savefig(output) print(f"plot saved to {output}") |