用python画散点图
# -*- coding: UTF-8 -*- import matplotlib as mpl import numpy as np import matplotlib.pyplot as plt n=1024 X=np.random.normal(0,1,n) Y=np.random.normal(0,1,n) T=np.arctan2(Y,X)#颜色 plt.scatter(X,Y,s=50,c=T,alpha=0.5) plt.xlim(-1.5,1.5) plt.ylim(-1.5,1.5) plt.xticks(()) plt.yticks(()) plt.show()