Skip to content

Instantly share code, notes, and snippets.

@Irene-123
Last active December 6, 2020 10:07
Show Gist options
  • Save Irene-123/257be01d802035b3a3b525117b254964 to your computer and use it in GitHub Desktop.
Save Irene-123/257be01d802035b3a3b525117b254964 to your computer and use it in GitHub Desktop.
Sudan Neighbouring countries
data = dict(type = 'choropleth',
locations = ['Egypt','Eritrea','Ethiopia',
'Central African Republic','Chad','Libya',
'South Sudan','Sudan'],
locationmode = 'country names',
colorscale= 'Portland',
text= ['EG','ER','ET','CF','TD','LBY','SDN','SD'],
z=[1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0],
colorbar = {'title':'Country Colours', 'len':200,'lenmode':'pixels' })
col_map = gobj.Figure(data = [data])
#plotting the map
iplot(col_map)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment