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/realloc.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/benchmarks/realloc.py') diff --git a/src/benchmarks/realloc.py b/src/benchmarks/realloc.py index bd8f801..d3375ff 100644 --- a/src/benchmarks/realloc.py +++ b/src/benchmarks/realloc.py @@ -34,10 +34,14 @@ class BenchmarkRealloc(Benchmark): super().__init__(name) def summary(self): - plt.barplot_single_arg(self, "{task-clock}", - ylabel='"task-clock in ms"', - title='"realloc micro benchmark"', - file_postfix="time") + plt.plot(self, + "{task-clock}", + plot_type='bar', + fig_options={ + 'ylabel': 'task-clock in ms', + 'title': 'realloc micro benchmark', + }, + file_postfix="time") plt.export_stats_to_csv(self, "task-clock") plt.export_stats_to_dataref(self, "task-clock") -- cgit v1.2.3