From 2d04ba6fa488b40ad0e40c547239828cbd644445 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Thu, 30 May 2024 15:56:07 +0900 Subject: [PATCH] update plot titles --- mixnet/v2/sim/analysis.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mixnet/v2/sim/analysis.py b/mixnet/v2/sim/analysis.py index 5f40266..aea7301 100644 --- a/mixnet/v2/sim/analysis.py +++ b/mixnet/v2/sim/analysis.py @@ -101,7 +101,7 @@ class Analysis: plt.figure(figsize=(12, 6)) for column in msg_cnt_df.columns: plt.plot(msg_cnt_df.index, msg_cnt_df[column], marker=None, label=column) - plt.title("Messages in each node over time") + plt.title("Messages within each node over time") plt.xlabel("Time") plt.ylabel("Msg Count") plt.ylim(bottom=0) @@ -113,9 +113,9 @@ class Analysis: plt.figure(figsize=(12, 6)) for column in sender_cnt_df.columns: plt.plot(sender_cnt_df.index, sender_cnt_df[column], marker=None, label=column) - plt.title("Senders of messages in each node over time") + plt.title("Diversity of senders of messages received by each node over time") plt.xlabel("Time") - plt.ylabel("Sender Count") + plt.ylabel("# of senders of messages received by each node") plt.ylim(bottom=0) plt.grid(True) plt.tight_layout() @@ -123,11 +123,11 @@ class Analysis: plt.figure(figsize=(12, 6)) df.boxplot(column="sender_cnt", by="time", medianprops={"color": "red", "linewidth": 2.5}) - plt.title("Distribution of senders of messages in each node over time") + plt.title("Diversity of senders of messages received by each node over time") plt.suptitle("") plt.xticks([]) plt.xlabel("Time") - plt.ylabel("Sender Count") + plt.ylabel("# of senders of messages received by each node") plt.ylim(bottom=0) plt.grid(axis="x") plt.tight_layout()