去掉边框
ax.spines[‘top’].set_visible(False)
ax.spines[‘right’].set_visible(False)
ax.spines[‘bottom’].set_visible(False)
ax.spines[‘left’].set_visible(False)
去掉横纵坐标
ax.set_xticks([])
ax.set_yticks([])
子图 地理子图
plt.figure()
fig, axes = plt.subplots(1, 2, sharex = True, sharey = True )
boundary = gpd.read_file('boundary.shp')
boundary.plot( ax = axes[0], color = 'lightgrey', alpha = 0.5, linewidth = 0.5 )