From 3a901bb6b73c6a8cae2eba617969c114aed347b3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 12 Jan 2021 08:46:04 +0100 Subject: plotter: print notice when exporting plots --- lib/plotter.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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() -- cgit v1.2.3