Skip to content

feat: Add symlog scale, scattermap zoom fix, and line dash support#7712

Closed
DhruvGarg111 wants to merge 3 commits intoplotly:masterfrom
DhruvGarg111:feat/scattermap-zoom-symlog-dash
Closed

feat: Add symlog scale, scattermap zoom fix, and line dash support#7712
DhruvGarg111 wants to merge 3 commits intoplotly:masterfrom
DhruvGarg111:feat/scattermap-zoom-symlog-dash

Conversation

@DhruvGarg111
Copy link

@DhruvGarg111 DhruvGarg111 commented Feb 17, 2026

This PR addresses three issues:

  1. Fixes [BUG]: Default zoom and center for scattermap traces does not show all points #7674 (Scattermap Zoom): Implemented auto-calculation for \zoom\ and \center\ in \scattermap\ traces when they are not provided by the user. It now computes the bounding box of the data and fits the map view accordingly.
  2. Fixes add symmetrical log scale #221 (Symlog Scale): Added a new axis type \symlog\ (symmetrical log). This uses an \�sinh\ transformation to allow log-like scaling that passes smoothly through zero and handles negative numbers.
  3. Fixes [Feature Request] Support line styles in Scattermapbox #6791 (Line Dash): Added support for \line.dash\ in \scattermap\ and \scattermapbox\ traces, mapping Plotly dash strings (e.g. 'dot', 'dashdot') to Mapbox's \line-dasharray\ format.

Changes:

  • Modified \src/plots/map/layout_defaults.js\ for auto-bounds.
  • Modified \src/plots/cartesian/set_convert.js\ and \layout_attributes.js\ for \symlog.
  • Modified \�ttributes.js\ and \convert.js\ in \src/traces/scattermap\ and \src/traces/scattermapbox\ for dashed lines.

@DhruvGarg111 DhruvGarg111 changed the title Feat/scattermap zoom symlog dash feat: Add symlog scale, scattermap zoom fix, and line dash support Feb 17, 2026
@emilykl
Copy link
Contributor

emilykl commented Feb 18, 2026

Hi @DhruvGarg111, thanks for the contribution!

Could you split your work into separate PRs for each issue?

To address the individual issues:

  • Map zoom and center: I would recommend to hold off further work for now — another contributor is working on a fix in Dynamic map defaults #7692 which looks promising and I'd like to give them the chance to pursue it.

  • symlog axis type: Doesn't seem to be quite working yet but I encourage you to open a separate PR and keep working on it. You'll want to add an image test by adding a .json file under test/image/mocks/ which shows an example of the symlog axis type in action.

  • line styles in scattermapbox: Likewise doesn't seem to be working yet but feel free to open a separate PR and continue work.


I'm going to close this PR but please open separate PRs for either or both of the latter two issues if you'd like to keep working on them!

@emilykl emilykl closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants

Comments