我试图使用cartopy在给定的半径范围内绘制圆圈.我想使用正交投影绘制,该投影以圆心为中心.
我使用以下python代码进行测试:
import numpy as np
import cartopy.crs as ccrs
import cartopy.feature as cfeature
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
# example: draw circle with 45 degree radius around the North pole
lon = 0
lat = 90
r = 45
# find map ranges (with 5 degree margin)
minLon = lon - r - 5
maxLon = lon + r + 5
minLat = lat - r - 5
maxLat = lat + r + 5
# …
Run Code Online (Sandbox Code Playgroud)