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]: contours.size initialization does not apply the specified value, but updates via dropdown work correctly #5613
When initializing a go.Contour trace with a specific contours.size value (e.g., 0.25), the setting is ignored on the initial render, and Plotly defaults to an automatically calculated contour step size.
Interestingly, if the exact same parameter ("contours.size") is later updated dynamically via a layout updatemenus dropdown using the "restyle" method, the chart correctly updates and respects the specified size.
Screenshots/Video
Initial Render (Buggy): The contours are spaced at default intervals despite contours.size=0.25 being passed to the constructor.
After Selecting Dropdown (Expected): Selecting "Contour Size: 0.25" from the dropdown forces the chart to restyle, properly displaying the dense 0.25-step contour lines.
Steps to reproduce
Run the provided Python snippet using plotly.py.
Observe the initial plot render: notice that the contour lines do not match a step size of 0.25.
Click the dropdown menu at the top left of the figure.
Select the "Contour Size: 0.25" option.
Notice that the plot immediately visualizes a much denser set of contours, behaving as it should have upon initialization.
The internal Python object structure correctly holds the contours.size value (as verified by the passing assert fig.data[0].contours.size == 0.25 statement).
Thanks for reporting this issue. This might be in plotly.js rather than plotly.py. We think this might be a good first issue for a contributor since it's likely only a few lines missing somewhere and easily reproducible. Please feel free to open a PR!
Activity
robertclaus commentedon Jun 17, 2026
Thanks for reporting this issue. This might be in
plotly.jsrather thanplotly.py. We think this might be a good first issue for a contributor since it's likely only a few lines missing somewhere and easily reproducible. Please feel free to open a PR!Fix plotly#5613: Apply impliedEdits for contours initialization
Fix plotly#5613: Apply impliedEdits for contours initialization
Fix plotly#5613: Apply impliedEdits for contours initialization
Fix plotly#5613: Apply impliedEdits for contours initialization
Fix plotly#5613: Apply impliedEdits for contours initialization
Fix plotly#5613: Apply impliedEdits for contours initialization
Fix plotly#5613: Apply impliedEdits for contours initialization
yqtian-se commentedon Jun 21, 2026
Hi @robertclaus,
I am trying to fix this via #5631. If you do not mind, could you please take a look? Any comments would be appreciated.
robertclaus commentedon Aug 6, 2026
@yqtian-se thanks for opening the PR. Sorry it's taken us a while to get to it! We will try to look at it soon.
Fix plotly#5613: contours.size ignored on initialization