import numpy as np
import matplotlib.pyplot as plt
plt.figure(figsize=(9,3),dpi=80)
pi=3.14159 # 圓周率
(A,B)=(2,1) # 亦可自行修改
x=np.linspace(0,6*pi,1001) #(起點,終點,共幾個點包含端點)
y1=np.sin(x)
y2=np.cos(x)
y3=A*np.sin(x)+B*np.cos(x)
plt.plot(x,y1,color="blue",linewidth=2)
plt.plot(x,y2,color="green",linewidth=2)
plt.plot(x,y3,color="red",linewidth=4)
plt.show()
#執行結果如下~