lec1

  1. we are using plotly, matlib also supports but it is static

Choropleth Maps

# import plotly.plotly as py
from plotly.offline import download_plotlyjs, init_notebook_mode,plot,iplot
init_notebook_mode(connected = True)

import chart_studio.plotly as py
import plotly.graph_objects as go

data = dict(type = 'choropleth',location = ['AZ','CA','NY'],locationmode = 'USA-states',colorscale = 'Portland',text = ['t1','t2','t3'],z=[1.0,2.0,3.0],colorbar = {'title','colorbar title'})

layout = dict(geo ={'scope':'usa'})
choromap = go.Figure([data],layout)
iplot(choromap)