Aesthetic plot update: title matches SIM_NAME exactly, ylabel includes Log Scale, markersize=2

This commit is contained in:
pchang718
2026-06-15 15:59:35 +08:00
parent 92137b2efa
commit dc9c4ffd42
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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()
+3 -3
View File
@@ -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()