From fe26e05dfba7b6c4a3e28b2be6dc369426277790 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 7 Apr 2020 15:54:25 +0200 Subject: unify plotting code Now there is only a single plot function which takes a plot type as well as some plot and figure options. --- src/benchmarks/raxmlng.py | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'src/benchmarks/raxmlng.py') diff --git a/src/benchmarks/raxmlng.py b/src/benchmarks/raxmlng.py index 8c8b878..ef77d2d 100644 --- a/src/benchmarks/raxmlng.py +++ b/src/benchmarks/raxmlng.py @@ -82,19 +82,25 @@ class BenchmarkRaxmlng(Benchmark): result["runtime"] = RUNTIME_RE.search(stdout).group("runtime") def summary(self): - plt.barplot_single_arg(self, - "{runtime}", - ylabel='"runtime in s"', - title='"raxml-ng tree inference benchmark"', - file_postfix="runtime") + plt.plot(self, + "{runtime}", + plot_type='bar', + fig_options={ + 'ylabel': 'runtime in s', + 'title': 'raxml-ng tree inference benchmark', + }, + file_postfix="runtime") plt.export_stats_to_dataref(self, "runtime") - plt.barplot_single_arg(self, - "{VmHWM}", - ylabel='"VmHWM in KB"', - title='"raxml-ng memusage"', - file_postfix="memusage") + plt.plot(self, + "{VmHWM}", + plot_type='bar', + fig_options={ + 'ylabel': 'VmHWM in KB', + 'title': 'raxml-ng memusage', + }, + file_postfix="memusage") plt.export_stats_to_dataref(self, "VmHWM") -- cgit v1.2.3