【发布时间】:2020-07-30 20:16:14
【问题描述】:
谁能帮我绘制最近的印度政治地图,其中还包括州界? 底图或地图中的默认地图不包括争议区域和州边界。 我现在的代码是
import cartopy as ccrs
import matplotlib.pyplot as plt
import cartopy.feature as cfeature
fig, ax = plt.subplots(subplot_kw=dict(projection=ccrs.crs.PlateCarree()))
ax.set_extent([67.0, 98.0, 5.0, 38.0])
gl = ax.gridlines(crs=ccrs.crs.PlateCarree(), draw_labels=True,
linewidth=1, color='gray', alpha=0.5,
linestyle='--')
gl.xlabels_top = False
gl.ylabels_right = False
ax.coastlines(color='black', linewidth=1, resolution='10m')
ax.add_feature(cfeature.BORDERS.with_scale('10m'),
linestyle='-', alpha=.5)
【问题讨论】:
-
除了你的链接,如果你想要一张正确的印度地图,按照宪法规定,查谟和克什米尔的边界,你可以试试这个链接:indianremotesensing.com/2017/01/…
标签: python matplotlib gis matplotlib-basemap cartopy