Skip to content

Instantly share code, notes, and snippets.

@ekhoda
Last active December 27, 2019 02:30
Show Gist options
  • Save ekhoda/125c0d4cc2f52bdb60b838d985bbff8a to your computer and use it in GitHub Desktop.
Save ekhoda/125c0d4cc2f52bdb60b838d985bbff8a to your computer and use it in GitHub Desktop.
# Add paths
for row in data.itertuples():
fig.add_trace(go.Scattergeo(
lon=[row.OriginLong, row.DestinationLong],
lat=[row.OriginLat, row.DestinationLat],
mode='lines',
line=dict(width=2, color='green'),
opacity=0.8,
showlegend=False,
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment