Aesthetic plot update: title matches SIM_NAME exactly, ylabel includes Log Scale, markersize=2
This commit is contained in:
+3
-3
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user