From fc7d3bea53f3d156a9854c11ee62fbeede176f70 Mon Sep 17 00:00:00 2001 From: Alberto Sonnino Date: Mon, 5 Jul 2021 17:29:30 +0100 Subject: [PATCH] Fix bug in plot label --- benchmark/benchmark/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/benchmark/plot.py b/benchmark/benchmark/plot.py index fcb74c57..e5b2ce43 100644 --- a/benchmark/benchmark/plot.py +++ b/benchmark/benchmark/plot.py @@ -94,7 +94,7 @@ def _plot(self, x_label, y_label, y_axis, z_axis, type): linestyle='dotted', marker=next(markers), capsize=3 ) - plt.legend(loc='lower center', bbox_to_anchor=(0.5, 1), ncol=2) + plt.legend(loc='lower center', bbox_to_anchor=(0.5, 1), ncol=3) plt.xlim(xmin=0) plt.ylim(bottom=0) plt.xlabel(x_label, fontweight='bold') @@ -144,7 +144,7 @@ def plot_latency(cls, files, scalability): assert all(isinstance(x, str) for x in files) z_axis = cls.workers if scalability else cls.nodes x_label = 'Throughput (tx/s)' - y_label = ['Latency (ms)'] + y_label = ['Latency (s)'] ploter = cls(files) ploter._plot(x_label, y_label, ploter._latency, z_axis, 'latency')