From 9ef16832c7898b4d0af18fc12f1d11e24c4c925c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 15 Jul 2018 16:34:25 +0200 Subject: add point markers to plots and fix targets --- bench_loop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bench_loop.py') diff --git a/bench_loop.py b/bench_loop.py index 8f11b61..dcffa7f 100644 --- a/bench_loop.py +++ b/bench_loop.py @@ -109,7 +109,7 @@ class Benchmark_Loop(): # nthreads/time = MOPS/S d.append(mid[1]/float(m["cpu-clock:ku"])) y_vals[mid[1]-1] = np.mean(d) - plt.plot(self.nthreads, y_vals, label=target) + plt.plot(self.nthreads, y_vals, marker='.',linestyle='-', label=target) plt.legend() plt.xlabel("threads") @@ -131,7 +131,7 @@ class Benchmark_Loop(): # nthreads/time = MOPS/S d.append(n/float(m["cpu-clock:ku"])) y_vals[y_mapping[mid[2]]] = np.mean(d) - plt.plot(x_vals, y_vals, label=target) + plt.plot(x_vals, y_vals, marker='.', linestyle='-', label=target) plt.legend() plt.xticks(x_vals, self.maxsize) -- cgit v1.2.3