我有一个(纬度,纬度,值)的列表 - 我想使用Basmap显示的小数点。 最简单的方法是什么?
data = [(1, 2, 0.12323), (2, 5, 0.23232), (4, 52,0.23131) . . tenthousand times this. . ]I have a list of (latitude, logitude, value)-Tuples I want to show using Basmap. What's the easiest way to do that?
data = [(1, 2, 0.12323), (2, 5, 0.23232), (4, 52,0.23131) . . tenthousand times this. . ]最满意答案
我没有使用底图,但它看起来像你想要的是scatter()方法:
http://matplotlib.github.com/basemap/api/basemap_api.html#mpl_toolkits.basemap.Basemap.scatter
它采用与matplotlib.pyplot.scatter方法相同的参数:
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.scatter
I haven't used basemap, but it looks like what you want is the scatter() method:
http://matplotlib.github.com/basemap/api/basemap_api.html#mpl_toolkits.basemap.Basemap.scatter
Which takes the same parameters as the matplotlib.pyplot.scatter method:
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.scatter
更多推荐
发布评论