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块

原文地址:https://www.cnblogs.com/eclipSycn/p/6606160.html