import matplotlib.pyplot as plt x_values = range(1,1001) y_values = [x ** 2 for x in x_values] fig,ax = plt.subplots() ax.scatter(x_values,y_values,s=100) ax.axis([0,1100,0,1100000]) # 设置每个坐标轴的数据范围 plt.show()