[python 做業] [第十二週] matplotlib exercise

代碼:web import numpy as np import matplotlib.pyplot as plt # Exercise 11.1: Plotting a function x = np.linspace(0, 2, 50) y = pow(np.sin(x-2), 2) * np.exp(-x**2) plt.plot(x, y) plt.xlim((0, 2)) # set
相關文章
相關標籤/搜索