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()
posted on 2021-03-14 00:00 winecork 阅读(27) 评论(0) 编辑 收藏 举报