1
我想了解如何在python中使用底图。我使用以下网站学习http://www.datadependence.com/2016/06/creating-map-visualisations-in-python/。 但是当我键入以下底图错误:模块对象不可调用
import matplotlib.pyplot as plt
import matplotlib.cm
import basemap
fig,ax=plt.subplots(figsize=(10,20))
m=basemap(resolution='c',projection='merc',lat_0=54.5,lon_0=-4.36,llcrnrlon=-6.,llcrnrlat=49.5,urcrnrlon=2.,urcrnrlat=55.2)
m.drawmapboundary(fill_color='#46bcec')
m.fillcontinents(color='#f2f2f2',lake_color='#46bcec')
m.drawcoastlines()
我得到一个错误的TypeError: 'module' object is not callable
。为什么是这个原因?
请不要标记您的标题 - 这就是实际的标签是什么 – xaxxon