Runtime error using python basemap and pyproj?

前端 未结 1 1251
-上瘾入骨i
-上瘾入骨i 2021-01-22 00:28

I wrote a script using Spyder IDE with mpl_toolkits basemap to plot a GPS track as arrows for direction colored by speed. Everything worked fine until I upgraded pandas to 0.13.

1条回答
  •  北恋
    北恋 (楼主)
    2021-01-22 01:23

    For whatever reason, Basemap.quiver doesn't like taking Pandas DataFrame columns after upgrading. I changed: gMap.quiver(AllPoints['lon'],AllPoints['lat']....) to: gMap.quiver(AllPoints['lon'].values,AllPoints['lat'].values....) and it works fine now.

    0 讨论(0)
提交回复
热议问题