plt.figure()用法答:y1=np.sin(x)y2=np.cos(x)绘制图像 fig=plt.figure(figsize=(8, 5))ax=fig.add_subplot(1, 1, 1)ax.plot(x, y1, color='blue', linestyle='-', label='sin(x)')ax.plot(x, y2, color='green', linestyle='--', label='cos(x)')ax.set_title('Sin and Cos functions'...