You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Default zoom level for px.scatter_map is too high #5450
Which is bad. We should set the Zoom to cover as many points as possible. Centroid on Africa seems reasonable for this example but not sure how it's determined.
Though I notice with some PX calls the centre point seems set automatically (note I removed the zoom level):
changed the title [-]Automatically set zoom and centroid for scatter tile maps[/-][+]feat: Automatically set zoom and centroid for scatter tile maps[/+]on Jul 22, 2025
However, it seems the root cause is bad defaults being added by plotly.py, since the equivalent plot in plotly.js is fully zoomed out and shows all the data: Link to Codepen
changed the title [-]feat: Automatically set zoom and centroid for scatter tile maps[/-][+]bug: Default zoom level for `px.scatter_map` is too high[/+]on Dec 12, 2025
Activity
[-]Automatically set zoom and centroid for scatter tile maps[/-][+]feat: Automatically set zoom and centroid for scatter tile maps[/+]emilykl commentedon Dec 11, 2025
@ndrezn I'm moving this to the plotly.py repo since this seems to be a Plotly Express issue, not plotly.js.
This code:
produces a map centered on the centroid but zoomed in way too far, such that none of the data is visible:

Center and zoom info of the final plot:
However, it seems the root cause is bad defaults being added by plotly.py, since the equivalent plot in plotly.js is fully zoomed out and shows all the data: Link to Codepen
[-]feat: Automatically set zoom and centroid for scatter tile maps[/-][+]bug: Default zoom level for `px.scatter_map` is too high[/+]