Skip to content

Commit 4385391

Browse files
committed
refined nc figures
1 parent 3a54e12 commit 4385391

6 files changed

Lines changed: 3 additions & 3 deletions

File tree

Binary file not shown.

benchmark/figure/NC_comm_costs_old/extract_global_test_acc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def plot_accuracy_curves_grouped(results):
6767
colors = {"FedAvg": "#1f77b4", "fedgcn": "#ff7f0e"}
6868

6969
for dataset_key, dataset_title in datasets.items():
70-
plt.figure(figsize=(10, 9)) # Taller for better visual clarity
70+
plt.figure(figsize=(10, 5)) # Shorter figure for compact display
7171
for algo in algos:
7272
df = results.get((dataset_key, algo))
7373
if df is not None and not df.empty:
@@ -80,11 +80,11 @@ def plot_accuracy_curves_grouped(results):
8080
)
8181
plt.title(dataset_title, fontsize=38)
8282
plt.xlabel("Training Round", fontsize=34)
83-
plt.ylabel("Global Test Accuracy", fontsize=34)
83+
plt.ylabel("Test Accuracy", fontsize=34)
8484
plt.grid(True, linestyle="--", alpha=0.6)
8585
plt.xticks(fontsize=30)
8686
plt.yticks(fontsize=30)
87-
plt.legend(fontsize=30, loc="lower right")
87+
plt.legend(fontsize=20, loc="lower right")
8888
plt.tight_layout()
8989
plt.savefig(f"nc_accuracy_curve_{dataset_key}.pdf", dpi=300)
9090
plt.close()
-536 Bytes
Binary file not shown.
-576 Bytes
Binary file not shown.
-480 Bytes
Binary file not shown.
-225 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)