update plot titles

This commit is contained in:
Youngjoon Lee 2024-05-30 15:56:07 +09:00
parent a7433cbf4e
commit 2d04ba6fa4
No known key found for this signature in database
GPG Key ID: 09B750B5BD6F08A2

View File

@ -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()