# 散点图,alpha透明度,color为内部颜色,color=' '无内部颜色,s标记大小 plt.scatter(x,y,alpha=0.6,marker = 's',color="w",linewidths=1,s=50,edgecolors='black') # 生成网格 # which : {'major', 'minor', 'both'}, optional # The grid lines to apply the changes on. # axis : {'both', 'x', 'y'}, optional # The axis to apply the changes on. plt.grid(which='major', axis='both', **kwargs)