0
import numpy as np
import matplotlib.pyplot as plt
x = np.array([1.628,1.548,1,451,1.386,1.280])
y = np.array([0.124,0.086,0.045,0.013,-0.032])
plt.plot(x,y)
plt.show();
嗨,Matplotlib:ValueError異常:X和Y必須具有相同的第一維錯誤
我知道這已經被問過。我試圖將列表轉換爲numpy數組,但不幸的是發生了同樣的錯誤。你能告訴我我要去哪裏嗎?
將x從1,451更改爲1.451 – ettanany