


scatter(x, y, 点的大小, 颜色,标记),这是最主要的几个用法,如果括号中不写s= c=则按默认顺序,写了则按规定的来,不考虑顺序
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.scatter([1,2,3,4],[2,4,6,8],[10,20,30,40],['r', 'b','y','k']) #x,y,大小,颜色,颜色也可以用随意的数字代替,比如[1,2,3,4]表示不同颜色即可,具体怎么设置想要的颜色后续再研究
plt.show()