From dc9c4ffd42beff3a89b8adb2b9ff4d7c5977843b Mon Sep 17 00:00:00 2001 From: pchang718 Date: Mon, 15 Jun 2026 15:59:35 +0800 Subject: [PATCH] Aesthetic plot update: title matches SIM_NAME exactly, ylabel includes Log Scale, markersize=2 --- resume_run.py | 6 +++--- solve_sweep_recon.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resume_run.py b/resume_run.py index a30389a..a9f3baf 100644 --- a/resume_run.py +++ b/resume_run.py @@ -753,12 +753,12 @@ np.savetxt(f"{OUT_DIR}sweep_iv_2d.csv", np.column_stack((voltage_list, current_l # Plot and save I-V curve plt.figure(figsize=(8, 6)) -plt.plot(voltage_list, np.abs(current_list), 'o-', color='#1f77b4', markersize=1.5) +plt.plot(voltage_list, np.abs(current_list), 'o-', color='#1f77b4', markersize=2) plt.yscale('log') plt.grid(True, which="both", ls="--") plt.xlabel("Bias Voltage (V)") -plt.ylabel("Terminal Current (A/cm)") -plt.title(f"TVS 2D Bidirectional Bias Sweep I-V Curve (Log Scale)\n[{SIM_NAME}]", fontsize=12) +plt.ylabel("Terminal Current (A/cm, Log Scale)") +plt.title(SIM_NAME) plt.tight_layout() plt.savefig(f"{OUT_DIR}sweep_iv_2d.png", dpi=300) plt.close() diff --git a/solve_sweep_recon.py b/solve_sweep_recon.py index 0739233..50efd35 100644 --- a/solve_sweep_recon.py +++ b/solve_sweep_recon.py @@ -637,12 +637,12 @@ np.savetxt(f"{OUT_DIR}sweep_iv_2d.csv", np.column_stack((voltage_list, current_l # Plot and save I-V curve plt.figure(figsize=(8, 6)) -plt.plot(voltage_list, np.abs(current_list), 'o-', color='#1f77b4', markersize=1.5) +plt.plot(voltage_list, np.abs(current_list), 'o-', color='#1f77b4', markersize=2) plt.yscale('log') plt.grid(True, which="both", ls="--") plt.xlabel("Bias Voltage (V)") -plt.ylabel("Terminal Current (A/cm)") -plt.title(f"TVS 2D Bidirectional Bias Sweep I-V Curve (Log Scale)\n[{SIM_NAME}]", fontsize=12) +plt.ylabel("Terminal Current (A/cm, Log Scale)") +plt.title(SIM_NAME) plt.tight_layout() plt.savefig(f"{OUT_DIR}sweep_iv_2d.png", dpi=300) plt.close()