-
使用basemap把数据放到地图上
plt.figure( figsize=(20,10), facecolor='k')
m = Basemap(projection='mill',resolution=None,llcrnrlat=-90,urcrnrlat=90,llcrnrlon=-180,urcrnrlon=180)
m.etopo()
xpt,ypt = m(np.array(tweets['place_lon']),np.array(tweets['place_lat']))
lon,lat = m(xpt,ypt,inverse=True)
m.plot(xpt,ypt,'ro',markersize=np.sqrt(5))
plt.title('Repartition on the globe', bbox={'facecolor':'0.8', 'pad':3})
plt.show()
参考:https://datascienceplus.com/twitter-analysis-with-python/
- 使用PyEcharts制作时间轴
使用 PyEcharts 制作 Timeline(时间轴组件)详解:https://zhuanlan.zhihu.com/p/365830101