From 0e467466b1171f162948e9aaa369c6117d915e05 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 9 Mar 2020 19:14:54 +0100 Subject: improve matplotlib code add new helper functions to get all y_values for a plot use seperate figures for each plot s/filepostfix/file_postfix/ to be consistent --- src/benchmarks/espresso.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/benchmarks/espresso.py') diff --git a/src/benchmarks/espresso.py b/src/benchmarks/espresso.py index 5149dcb..6012d02 100644 --- a/src/benchmarks/espresso.py +++ b/src/benchmarks/espresso.py @@ -84,7 +84,7 @@ class BenchmarkEspresso(Benchmark): "{task-clock}/1000", ylabel="cpu-second", title="Espresso: runtime", - filepostfix="time") + file_postfix="time") # L1 cache misses plt.barplot_single_arg( @@ -92,7 +92,7 @@ class BenchmarkEspresso(Benchmark): "({L1-dcache-load-misses}/{L1-dcache-loads})*100", ylabel="L1 misses in %", title="Espresso l1 cache misses", - filepostfix="l1misses", + file_postfix="l1misses", yerr=False) # Memusage @@ -100,7 +100,7 @@ class BenchmarkEspresso(Benchmark): "{VmHWM}", ylabel="VmHWM in KB", title="Espresso VmHWM", - filepostfix="vmhwm") + file_postfix="vmhwm") plt.write_tex_table(self, [{ "label": "Runtime [ms]", @@ -111,7 +111,7 @@ class BenchmarkEspresso(Benchmark): "expression": "{VmHWM}", "sort": "<" }], - filepostfix="table") + file_postfix="table") plt.export_stats_to_dataref(self, "task-clock") -- cgit v1.2.3