Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Fix bug in plot label
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Sonnino committed Jul 5, 2021
1 parent 99f304e commit fc7d3be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/benchmark/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit fc7d3be

Please sign in to comment.