The most basic way to adjust axis limits is to use the plt.xlim() and plt.ylim() methods (Figure 4-12): In[9]: plt.plot(x, np.sin(x)) plt.xlim(-1, ...
確定! 回上一頁