Skip to content

Instantly share code, notes, and snippets.

@focaalvarez
Created July 13, 2019 15:32
Show Gist options
  • Save focaalvarez/2b58cded29b1dcf6fe1cf3a73a033dd0 to your computer and use it in GitHub Desktop.
Save focaalvarez/2b58cded29b1dcf6fe1cf3a73a033dd0 to your computer and use it in GitHub Desktop.
data = [
go.Scattermapbox(
lat=pubs['latitute'],
lon=pubs['longitude'],
mode='markers',
marker=go.scattermapbox.Marker(
size=1.5
),
text=pubs['name'],
)
]
layout = go.Layout(
autosize=True,
hovermode='closest',
mapbox=go.layout.Mapbox(
accesstoken=mapbox_access_token,
bearing=0,
center=go.layout.mapbox.Center(
lat=53,
lon=-1.5
),
pitch=0,
zoom=4
),
)
fig = go.Figure(data=data, layout=layout)
py.iplot(fig, filename='All UK Pubs 2')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment