matplotlib curve.py

import matplotlib.pyplot as plt
import numpy as np

x = 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()
posted @ 2015-01-10 23:18  张舒  阅读(368)  评论(0编辑  收藏  举报