使用 Cartopy 的扩展欧洲地图

Map of extended Europe with Cartopy

以下Python代码产生了西欧的美景:

import matplotlib.pyplot as plt
import cartopy
import cartopy.io.shapereader as shpreader
import cartopy.crs as ccrs

plt.figure(figsize=(10, 10))
ax = plt.axes(projection=ccrs.EuroPP())
ax.add_feature(cartopy.feature.BORDERS, linestyle='-', alpha=1)
ax.coastlines(resolution='10m')
ax.add_feature(cartopy.feature.OCEAN,facecolor=(0.5,0.5,0.5))
ax.gridlines()

但是,如何将地图向东延伸,包括土耳其和其他高加索国家?我需要在 EuroPP()() 中包含一些参数吗?我需要为其他东西更改 projection=ccrs.EuroPP() 吗?没有找到任何示例...

要获得类似投影的地图,即中央子午线在 32 度经度的横轴墨卡托投影,请尝试 运行 此代码:

import cartopy
import cartopy.crs as ccrs
import matplotlib.pyplot as plt

plt.figure(figsize=(9, 9))
ax = plt.axes(projection=cartopy.crs.TransverseMercator(32))
ax.add_feature(cartopy.feature.BORDERS, linestyle='-', alpha=1)
ax.coastlines(resolution='110m')
ax.add_feature(cartopy.feature.OCEAN, facecolor=(0.5,0.5,0.5))
ax.gridlines()
ax.set_extent ((-7.5, 50, 34, 69), cartopy.crs.PlateCarree())
plt.show()

你会得到这样的情节: