import pandas as pd
import matplotlib.pyplot as plt

# 第一个文件路径
file1 = "42409194_959171YT3252518@R04_7000_ST11210_TestCurve_20260420183238_NG.csv"
# 第二个文件路径
file2 = "42409194_959171YT4058793@R04_7000_ST11210_TestCurve_20260420194020_NG.csv"

# 读取数据
df1 = pd.read_csv(file1)
df2 = pd.read_csv(file2)

# 创建第一个图形
plt.figure(figsize=(10, 6))
plt.plot(df1['Current'], df1['Voltage'], 'b-', linewidth=1, alpha=0.7)
plt.xlabel('Current (mA)')
plt.ylabel('Voltage (V)')
plt.title('Test Curve 1 (2026-04-20 18:32:38)')
plt.grid(True)
plt.tight_layout()
plt.show()

# 创建第二个图形
plt.figure(figsize=(10, 6))
plt.plot(df2['Current'], df2['Voltage'], 'r-', linewidth=1, alpha=0.7)
plt.xlabel('Current (mA)')
plt.ylabel('Voltage (V)')
plt.title('Test Curve 2 (2026-04-20 19:40:20)')
plt.grid(True)
plt.tight_layout()
plt.show()