Hi,
First off, really enjoying working with Plotly, Iāve run into a bit of a roadblock though and I canāt find the answer in the APIā¦
Is there any way to significantly increase the scale that a Scattergeo figure can be zoomed into please? I have a map in a Jupyter notebook, and Iāve plotted points on it, but my points are only approxā¦ 100 m apart, and I canāt seem to zoom in enough to distinguish between them.
Iāve tried increasing the āresolutionā attribute of the ālayoutā dict but havenāt noticed any difference in zooming capability.
Is it possible to increase the zooming limits of a Plotly figure please?
Many thanks in advance!
trace = dict(
type=āscattergeoā,
lon = df[āLongitudeā],
lat = df[āLatitudeā],
mode=āmarkersā)
lyt = dict(geo = dict(lonaxis=dict(showgrid=True), showland=True, showocean=True, showcountries=True, projection = dict(scale=1)))
map = go.Figure(data = [trace], layout = lyt)
py.iplot(map)
https://plot.ly/python/reference/#layout-geo-resolution should be exactly what youāre looking for.
Warning. I donāt recommend bumping up the resolution on interactive full-globe maps. Though, bumping up the resolution on image exports is a great idea.
Hi Etienne,
Thanks a million for the link, much appreciated! Unfortunately the resolution seems to only allow two values, 50 and 110. Even at a resolution of 50 I canāt distinguish between the points on my plot, as they are approximately 100 m apart, and a resolution of 50 means that 1 mm corresponds to 50 km. Is 50 the highest resolution that a Plotly map can have, or is there a way to increase this please? Iāve tried other values and it seems that unless the value is 50, the map defaults to 110.
Duly noted about increasing the resolution on interactive maps, thanks for the tip!
trace = dict(
type=āscattergeoā,
lon = df[āLongitudeā],
lat = df[āLatitudeā],
mode=āmarkersā)
lyt = dict(geo = dict(resolution=50, lonaxis=dict(showgrid=True), showland=True, showocean=True, showcountries=True, projection = dict(scale=1)))
map = go.Figure(data = [trace], layout = lyt)
py.iplot(map)