From 5d6a470ce0c7d334205293de9b596a5ea4eb2e8c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 11 Feb 2020 14:22:07 +0100 Subject: cleanup plot code * use str.format instead of eval for plot labels * use meaningful variable names * add license header * add some doc strings --- src/benchmarks/cfrac.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/benchmarks/cfrac.py') diff --git a/src/benchmarks/cfrac.py b/src/benchmarks/cfrac.py index 34c0894..59c8858 100644 --- a/src/benchmarks/cfrac.py +++ b/src/benchmarks/cfrac.py @@ -86,16 +86,16 @@ class BenchmarkCfrac(Benchmark): plt.barplot_single_arg( self, "({L1-dcache-load-misses}/{L1-dcache-loads})*100", - ylabel='"L1 misses in %"', - title='"Cfrac l1 cache misses"', + ylabel="L1 misses in %", + title="Cfrac l1 cache misses", filepostfix="l1misses", yerr=False) # Memusage plt.barplot_single_arg(self, "{VmHWM}", - ylabel='"VmHWM in KB"', - title='"Cfrac VmHWM"', + ylabel="VmHWM in KB", + title="Cfrac VmHWM", filepostfix="vmhwm") self.write_tex_table([{ -- cgit v1.2.3