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/fd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/benchmarks/fd.py') diff --git a/src/benchmarks/fd.py b/src/benchmarks/fd.py index bede21a..0d5657d 100644 --- a/src/benchmarks/fd.py +++ b/src/benchmarks/fd.py @@ -69,16 +69,16 @@ class BenchmarkFd(Benchmark): def summary(self): plt.barplot_single_arg(self, "{task-clock}", - ylabel='"runtime in ms"', - title='"fd runtime"', + ylabel="runtime in ms", + title="fd runtime", filepostfix="runtime") plt.export_stats_to_dataref(self, "task-clock") plt.barplot_single_arg(self, "{VmHWM}", - ylabel='"VmHWM in KB"', - title='"fd memusage"', + ylabel="VmHWM in KB", + title="fd memusage", filepostfix="memusage") plt.export_stats_to_dataref(self, "VmHWM") -- cgit v1.2.3