使用scatter()绘制散点图 之前写过一篇,使用magic function快速绘图的教程了:https://www.cnblogs.com/jiading/p/11750001.html.但这种方法比较适合用来绘制柱状图,散点图的话,使用下面的代码: import matplotlib.pyplot as plt X=[-1,0,1,2,3,4,-4,8,2,0,-2] y=[0,1,2,3,4,5,6,7,8,9,10] count=len(X) for i in range(count…