想知道这个折线图怎么搞

不知道错哪了 那那个曲线不知道为啥出不来,反而那个刻度还少了 太南了,help

img

img

img

img

y 不要用 ''

不能用框架吗?


x = [1,2,3,4]
y = [2.73,2.99,3.26,2.77]
plt.plot(x, y, linewidth=1, color="r", marker="o")
labels = ['fri','sat','sun','thur']
plt.xticks(x,labels)
plt.yticks([2.8,2.9,3.0,3.1])
plt.show()

如有用请采纳

x,y处理反了

x=['Fri','Sai']
y=np.array(['1.1','2.2'])