python matplotlib

#coding=utf-8
from numpy import *
import matplotlib
import matplotlib.pyplot as plt
fig=plt.figure()
ax=fig.add_subplot(111)
datingDataMat=random.random((100,2))
ax.scatter(datingDataMat[:,0],datingDataMat[:,1])
plt.show()

 

posted @ 2013-09-23 09:27  yufenghou  阅读(311)  评论(0编辑  收藏  举报