geopandas简单绘图及横坐标调整

 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()
geopandas简单绘图及横坐标调整_第1张图片

你可能感兴趣的:(geopandas)