首页 > 代码库 > matplotlib curve.py

matplotlib curve.py

import matplotlib.pyplot as pltimport numpy as npx = np.linspace(0, 2*np.pi, 100)sinX = np.sin(x)cosX = np.cos(x)plt.plot(x, sinX)plt.plot(x, cosX)plt.show()

matplotlib curve.py