Last active
December 6, 2020 10:07
-
-
Save Irene-123/257be01d802035b3a3b525117b254964 to your computer and use it in GitHub Desktop.
Sudan Neighbouring countries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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