import pandas as pd
import matplotlib.pyplot as plt

# 读取第一个文件
df1 = pd.read_csv('42409194_959171YT3252518@R04_7000_ST11210_TestCurve_20260420183238_NG.csv')
plt.figure(figsize=(12,5))
plt.subplot(1,2,1)
plt.plot(df1['Voltage'], df1['Current'], 'b-', linewidth=0.5)
plt.xlabel('Voltage (V)')
plt.ylabel('Current (mA)')
plt.title('File 1: Voltage-Current Curve')
plt.grid(True)

# 读取第二个文件
df2 = pd.read_csv('42409194_959171YT4058793@R04_7000_ST11210_TestCurve_20260420194020_NG.csv')
plt.subplot(1,2,2)
plt.plot(df2['Voltage'], df2['Current'], 'r-', linewidth=0.5)
plt.xlabel('Voltage (V)')
plt.ylabel('Current (mA)')
plt.title('File 2: Voltage-Current Curve')
plt.grid(True)
plt.tight_layout()
plt.show()