python matplotlib pyplot

plt.scatter(datingDataMat[:,1],datingDataMat[:,2],c=datingLabels,s=35,alpha=0.4,marker='o')
#c:散点的颜色
#s:散点的大小 
#alpha:是透明程度
#make:散点样式

 

import matplotlib.pyplot as plt
from numpy import *
fig = plt.figure()
ax = fig.add_subplot(349)
ax.plot(x,y)
plt.show()

参数349的意思是:将画布分割成3行4列,图像画在从左到右从上到下的第9块

posted @ 2017-03-23 17:13  eclipSycn  阅读(189)  评论(0)    收藏  举报