我们想更改在图表上显示x,y的取值范围:. import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1,1,50) y = x *2 plt.plot(x,y) plt.show().
確定! 回上一頁