Skip to content

Fix #5613: contours.size ignored on initialization - #5763

Draft
maram-odoo wants to merge 1 commit into
plotly:mainfrom
maram-odoo:main
Draft

maram-odoo wants to merge 1 commit into
plotly:mainfrom
maram-odoo:main

Conversation

@maram-odoo

@maram-odoo maram-odoo commented Sep 17, 2026

Copy link
Copy Markdown

When passing contours=dict(size=0.25) to go.Contour(), the size was stored in Python but lost during the initial render because the default autocontour=True in plotly.js auto-generates contour levels from ncontours and ignores contours.size. Setting autocontour=False when the user provides contours.size (without explicitly setting autocontour) ensures the size is preserved in the serialized JSON and honored on first render.

Link to issue

Closes #(issue number)

Description of change

Demo

Testing strategy

Additional information (optional)

Guidelines

When passing contours=dict(size=0.25) to go.Contour(), the size was
stored in Python but lost during the initial render because the default
autocontour=True in plotly.js auto-generates contour levels from ncontours
and ignores contours.size. Setting autocontour=False when the user provides
contours.size (without explicitly setting autocontour) ensures the size
is preserved in the serialized JSON and honored on first render.

Co-authored-by: openhands <openhands@all-hands.dev>
@robertclaus

Copy link
Copy Markdown

@maram-odoo could you fill in the rest of the PR description template? I'm bumping this back to draft for now, but please feel free to re-submit it once the PR description is filled out.

@robertclaus
robertclaus marked this pull request as draft September 17, 2026 19:24
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.

3 participants