Skip to content

Keep marker arrays aligned when dropping missing points - #2511

Open
M-Colley wants to merge 1 commit into
plotly:masterfrom
M-Colley:fix/2497-marker-arrays-follow-retained-points
Open

M-Colley wants to merge 1 commit into
plotly:masterfrom
M-Colley:fix/2497-marker-arrays-follow-retained-points

Conversation

@M-Colley

@M-Colley M-Colley commented Dec 5, 2026

Copy link
Copy Markdown

Summary

Keep per-point marker attributes aligned when plotting drops missing coordinates or splits rows into traces. The build step applies the retained row indices to marker arrays allowed by the trace schema. Scalar marker settings and colorscales retain their original values.

Fixes #2497.

Validation

  • Reproduced five marker colors for four coordinates on the base. The reporter's styled plot now retains four matching coordinates and colors.
  • Added plotly_build() regressions for missing positions, split traces, and nested marker attributes.
  • Full nonvisual suite on Windows R 4.5.3 and ggplot2 4.0.4 passed 1,479 assertions with zero failures or errors. The base passed 1,467 assertions. Both runs reported 20 warnings and 59 skips.

Codex assisted with implementation and validation.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data gets dropped in add_trace and consequently points have the wrong color if NA is present

1 participant