-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[BUG] data[type=contour].autocontour not working with restyle #4201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Writing down a similar play-by-play as in #4199 (comment) for this report: Plotly.newPlot(gd, [
{
z: [
[10, 10.625, 12.5, 15.625, 20],
[5.625, 6.25, 8.125, 11.25, 15.625],
[2.5, 3.125, 5, 8.125, 12.5],
[0.625, 1.25, 3.125, 6.25, 10.625],
[0, 0.625, 2.5, 5.625, 10]
],
type: "contour",
ncontours: 15,
autocontour: true,
contours: {
start: 1,
end: 5,
size: 1
}
}
])
// gives (the auto contours)
gd.data[0].contours // => {start: 2, end: 18, size: 2}
// then
Plotly.restyle(gd, { autocontour: false, "contours.start": 3 })
// gives
gd.data[0].contours // => {start: 3, end: 18, size: 2}
// ... keeping the previous auto contours value and
// ignoring the starting {start: 1, end: 5, size: 1} settings |
One additional comment: Turn on manual contour settings Turn on autocontour which will consume |
CodePen: https://codepen.io/mafar/pen/XWrxarp?editors=0010
This pen is bare minimum for bug reproduction
Explaination: https://plot.ly/javascript/reference/#contour
Initial data see below
autocontour:true
contours
start,end and size option even they will be ignored because ofautocontour:true
Once plot is drawn , restlye it with
But plot does not update !!! as expected where it should have used contours.start end and size values
Code:
The text was updated successfully, but these errors were encountered: