A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://nbviewer.org/github/herrfz/gdelt/blob/master/indn_connection.ipynb below:

Jupyter Notebook Viewer

figure(figsize=(10,10))

# çreate the map object with boundaries
id_map = Basemap(llcrnrlon=30, llcrnrlat=-40, # lower left corner
                 urcrnrlon=155, urcrnrlat=50) # upper right corner

# draw important features
id_map.drawcoastlines(linewidth=.3) 
id_map.drawcountries(linewidth=.2)
id_map.fillcontinents(color='0.8') # Light gray
id_map.drawmapboundary()

x1, y1 = id_map(top_100_1['Actor1Geo_Long'].values, top_100_1['Actor1Geo_Lat'].values)
x2, y2 = id_map(top_100_2['Actor1Geo_Long'].values, top_100_2['Actor1Geo_Lat'].values)

# plot material conflict locations
for i in xrange(len(x2)):
    id_map.plot(x2[i], y2[i], 'or', 
                markersize=top_100_2['Material Conflict'].values[i] / 2, 
                alpha=.3) 
    
# plot verbal conflict locations
for i in xrange(len(x1)):
    id_map.plot(x1[i], y1[i], 'oy', 
                markersize=top_100_1['Verbal Conflict'].values[i] / 2, 
                alpha=.8)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4