geopandas简单绘图及横坐标调整

来源:互联网 发布:父母职业怎么填写 知乎 编辑:程序博客网 时间:2024/06/06 16:32
 from shapely.geometry import * from geopandas import *  import numpy as np import matplotlib.pyplot as plt xmin, xmax, ymin, ymax = 900000, 1080000, 120000, 280000 xc = (xmax - xmin) * np.random.random(2000) + xmin yc = (ymax - ymin) * np.random.random(2000) + ymin  #构造点几何对象 pts = GeoSeries([Point(x, y) for x, y in zip(xc, yc)])pts.plot()#x刻度数值旋转90°plt.xticks(rotation=90)plt.show()

原创粉丝点击