Skip to content

Fix stale scattergl error bars on legend toggle#7824

Open
JulienIcon wants to merge 1 commit into
plotly:masterfrom
JulienIcon:fix-scattergl-error-bars-visibility-mismatch
Open

Fix stale scattergl error bars on legend toggle#7824
JulienIcon wants to merge 1 commit into
plotly:masterfrom
JulienIcon:fix-scattergl-error-bars-visibility-mismatch

Conversation

@JulienIcon
Copy link
Copy Markdown

Bug fix

Fixes #7773.

This PR fixes stale scattergl error bars after toggling trace visibility from the legend when only some traces have error bars.

regl-error2d keeps previous groups when batch entries are omitted, so hidden traces could leave stale error-bar groups behind. The fix sends explicit empty error-bar options for missing error_x / error_y entries, clearing the corresponding renderer groups.

Tests

Added a scattergl regression test covering mixed traces with and without error_y. The test verifies that after toggling visibility, the remaining visible error bars are as expected and that stale renderer groups are cleared.

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.

[BUG]: scattergl error bars visibility mismatch

1 participant