使用plt.subplots和plt.figure有點類似,只是使用tuple把fig和axes結合起來fig, axes = plt.subplots() axes.plot(x,y,'b') axes.set_xlabel('x') ...
確定! 回上一頁