diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-07 15:54:25 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-07 15:54:25 +0200 |
| commit | fe26e05dfba7b6c4a3e28b2be6dc369426277790 (patch) | |
| tree | e724a1264ea3e1f07f327d6d27e0c5afafa09d23 /src/benchmarks/raxmlng.py | |
| parent | 57d94cd47a4a5c187aed2245b0f213ba520f2405 (diff) | |
| download | allocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.tar.gz allocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.zip | |
unify plotting code
Now there is only a single plot function which takes a plot type as
well as some plot and figure options.
Diffstat (limited to 'src/benchmarks/raxmlng.py')
| -rw-r--r-- | src/benchmarks/raxmlng.py | 26 |
1 files changed, 16 insertions, 10 deletions
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") |
