diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-01-12 08:46:04 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-01-12 08:46:04 +0100 |
commit | 3a901bb6b73c6a8cae2eba617969c114aed347b3 (patch) | |
tree | 9997c53988468ea653ace782346d75c02ab2902d | |
parent | a27fe5eb34c68e49877ab88ef7cd1b6e47273b25 (diff) |
plotter: print notice when exporting plots
-rwxr-xr-x | lib/plotter.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/plotter.py b/lib/plotter.py index 929ceb9..85796cf 100755 --- a/lib/plotter.py +++ b/lib/plotter.py @@ -149,6 +149,7 @@ def plot_xy(X, Y, xlabel=None, ylabel=None, title=None, output=None, family=Fals print("X Y", file=f) for i in range(len(X)): print("{} {}".format(X[i], Y[i]), file=f) + print(f"plot saved to {output}") else: plt.show() @@ -261,6 +262,7 @@ def plot_param( print(data_filename_base, function_filename) if output: plt.savefig(output) + print(f"plot saved to {output}") else: plt.show() @@ -408,5 +410,6 @@ def boxplot(ticks, measurements, xlabel="", ylabel="", modeldata=None, output=No for i, data in enumerate(measurements): for value in data: print("{} {}".format(ticks[i], value), file=f) + print(f"plot saved to {output}") else: plt.show() |