Created
July 13, 2019 15:32
-
-
Save focaalvarez/2b58cded29b1dcf6fe1cf3a73a033dd0 to your computer and use it in GitHub Desktop.
This file contains 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 = [ | |
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