Skip to content

Commit

Permalink
update plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhao-ye committed Dec 5, 2023
1 parent 003a49f commit 029a16a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion scripts/plot_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def plot(df_mean: pd.DataFrame, df_std: pd.DataFrame):
plt.close(fig)

print("Save legend as `ghost_perf_legend.pdf`")
legend_fig = make_legend(["zipf_s1G_z0.99", "unif_s1G", "zipf_s2G_z0.5"])
legend_fig = make_legend(["unif_s1G", "zipf_s1G_z0.99", "zipf_s2G_z0.5"],
width=5.5)

print("Legend saved to `ghost_perf_legend.png`")
legend_fig.savefig("ghost_perf_legend.png")
Expand Down
14 changes: 7 additions & 7 deletions scripts/plot_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
plt.rcParams['axes.labelpad'] = '1'

color_map = {
"zipf_s1G_z0.99": "0",
"unif_s1G": "0.6",
"zipf_s1G_z0.99": "0.5",
"unif_s1G": "0",
"zipf_s2G_z0.5": "0.8",
"unif_s0.5G": "0.4",
"unif_s0.7G": "0.2",
Expand All @@ -37,11 +37,11 @@
}

label_map = {
"zipf_s1G_z0.99": "Tenant X",
"unif_s1G": "Tenant U (1GB)",
"zipf_s2G_z0.5": "Tenant Z (theta 0.5)",
"unif_s0.5G": "Tenant U (0.5GB)",
"unif_s0.7G": "Tenant U (0.7GB)",
"zipf_s1G_z0.99": "Zipf (theta 0.99), 1GB",
"unif_s1G": "Unif, 1GB",
"zipf_s2G_z0.5": "Zipf (theta 0.5), 2GB",
"unif_s0.5G": "Unif, 0.5GB",
"unif_s0.7G": "Unif, 0.7GB",
}


Expand Down

0 comments on commit 029a16a

Please sign in to comment.