Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Fix error with graphics
Browse files Browse the repository at this point in the history
  • Loading branch information
jiep committed Feb 20, 2022
1 parent c6387db commit 5e72556
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions graphics/generate_graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def conditions(s):
df2 = df[['algorithm', 'mean_cpu_cycles', 'N', 'operation']]
print(data)
df2 = df2.groupby(['algorithm','N'])['mean_cpu_cycles'].sum().reset_index()
df2['mean_cpu_cycles'] = df2['mean_cpu_cycles']/df2['N']
print(df2)
p = sns.lineplot(ax=axes[j], x="N", y="mean_cpu_cycles", hue="algorithm", data=df2, palette=COLORS, linewidth=2, style="algorithm", markers=True, dashes=False)
axes[j].set_title("Level {}".format(LEVELS_LABELS[j]), fontsize="x-large")
Expand All @@ -83,7 +82,6 @@ def plot_scalability(data, config):
df2 = data[['algorithm', 'mean_cpu_cycles', 'N', 'operation']]
print(data)
df2 = df2.groupby(['algorithm','N'])['mean_cpu_cycles'].sum().reset_index()
df2['mean_cpu_cycles'] = df2['mean_cpu_cycles']/df2['N']
print(df2)
p = sns.lineplot(ax=axes, x="N", y="mean_cpu_cycles", hue="algorithm", data=df2, palette=COLORS, linewidth=2, style="algorithm", markers=True, dashes=False)
axes.set_xlabel('Number of parties', fontsize="x-large")
Expand Down
2 changes: 0 additions & 2 deletions graphics/generate_graphics_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def conditions(s):
df2 = df[['algorithm', 'mean_time_us', 'N', 'operation']]
print(data)
df2 = df2.groupby(['algorithm','N'])['mean_time_us'].sum().reset_index()
df2['mean_time_us'] = df2['mean_time_us']/df2['N']
print(df2)
p = sns.lineplot(ax=axes[j], x="N", y="mean_time_us", hue="algorithm", data=df2, palette=COLORS, linewidth=2, style="algorithm", markers=True, dashes=False)
axes[j].set_title("Level {}".format(LEVELS_LABELS[j]), fontsize="x-large")
Expand All @@ -83,7 +82,6 @@ def plot_scalability(data, config):
df2 = data[['algorithm', 'mean_time_us', 'N', 'operation']]
print(data)
df2 = df2.groupby(['algorithm','N'])['mean_time_us'].sum().reset_index()
df2['mean_time_us'] = df2['mean_time_us']/df2['N']
print(df2)
p = sns.lineplot(ax=axes, x="N", y="mean_time_us", hue="algorithm", data=df2, palette=COLORS, linewidth=2, style="algorithm", markers=True, dashes=False)
axes.set_xlabel('Number of parties', fontsize="x-large")
Expand Down

0 comments on commit 5e72556

Please sign in to comment.