matplotlib 實戰案例詳解

案例一 frommatplotlib.patches import Polygon deffunc(x): return -(x-2)*(x-8)+40 x=np.linspace(0,10) y=func(x) fig,ax=plt.subplots() plt.plot(x,y,"r",linewidth =  2) a=2 b=9 ax.set_xticks([a,b]) ax.set_yt
相關文章
相關標籤/搜索