要画折线图,直接在plot函数中传入x数据点和y数据点即可: x = np.linspace(-5, 5, 100) fig, axe = plt.subplots() axe.plot(x, np.sin(x)) plt.show ...
確定! 回上一頁