Geo scope won't change

fig = go.Figure(data= go.Scattermapbox())
fig.update_layout(
                title={'text': f'<b>{len(merged_df)} Hotspot Locations<b>',
                   'font': {
                       'size': 36,
                       'color': 'darkblue',
                   },
                   'xref': 'container',
                   'x': 0.5},
                geo= {'scope': 'world'},
                mapbox_style= "carto-positron",
                width= 1350,
                height= 800,
    )

When I change the scope to ‘usa’ or ‘europe’ nothing changes. Anyone has an idea?

1 Like