在Python中绘制一列(经度,纬度,值)

编程入门 行业动态 更新时间:2024-10-17 11:32:08
在Python中绘制一列(经度,纬度,值)-tuples?(Plotting a list of (lattitude, longitude, value)-tuples in Python?)

我有一个(纬度,纬度,值)的列表 - 我想使用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

更多推荐

本文发布于:2023-04-27 12:50:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1326407.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:经度   纬度   Python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!