Skip to content
Snippets Groups Projects
Verified Commit 5e41df1d authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

rename `labels` to `keys` in commit

parent f980b30f
No related branches found
No related tags found
1 merge request!69work on the benchmarks
......@@ -74,14 +74,14 @@ def plot_linalg(data: Data, save: bool = False):
ax.plot(sizes, means, label=curve, color=color)
ax.fill_between(sizes, down, up, color=color, alpha=0.3)
labels = ["transpose", "mul", "inverse"]
keys = ["transpose", "mul", "inverse"]
fig, axs = plt.subplots(len(labels), 1, figsize=(16, 9))
fig, axs = plt.subplots(len(keys), 1, figsize=(16, 9))
for label, ax in zip(labels, axs):
for key, ax in zip(keys, axs):
for (curve, color) in [("BLS12-381", "blue"), ("BN-254", "orange"), ("PALLAS", "green")]:
plot(data, key=label, curve=curve, color=color, ax=ax)
ax.set_title(label)
plot(data, key=key, curve=curve, color=color, ax=ax)
ax.set_title(key)
ax.set_yscale("log")
ax.set_ylabel("time in ms")
ax.legend()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment