我正在底图上的澳大利亚新南威尔士州地图上方创建散点图,并且雷达图(我知道是lon = 151.2095,lat = -33.7008)的位置绘制在海洋中时它实际上是内陆的。为什么会这样?
from mpl_toolkits.basemap import Basemap
import numpy as np
import matplotlib.pyplot as plt
def plot_gauges_on_map():
lon_0, lat_0 = 151.2095, -33.7008
width = 1000000
m = Basemap(width=width,height=width,projection='aeqd',
lat_0=lat_0,lon_0=lon_0)
# fill background.
m.drawmapboundary(fill_color='dodgerblue')
# draw coasts and fill continents.
m.drawcoastlines(linewidth=0.5)
m.fillcontinents(color='peru',lake_color='dodgerblue')
# draw a black dot at the radar.
xpt, ypt = m(lon_0, lat_0)
m.plot([xpt],[ypt],'ko')
# draw the title.
plt.title('Terrey Hills Radar')
plt.show()
plot_gauges_on_map()