python 畫圖實戰訓練

1. 函數積分圖 import matplotlib.pyplot as plt import numpy as np def func(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=3) a=2 b=8
相關文章
相關標籤/搜索