Iβm struggling to figure out how to use updatemenu to update plotly.graph_objects.Isosurface and plotly.graph_objects.Surface content in my plots.
I guess my main issue is, that I cannot find documention describing how to use βargsβ.
My attempt is on the form:
fig = go.Figure(data=go.Surface(...))
slice0 = [go.Isosurface(...)]
fig.update_layout(updatemenus=[go.layout.Updatemenu(type="buttons",
buttons=[dict(label="None",
method="update",
args=["none", []]),
dict(label="Slice 0",
method="update",
args=["isosurface", slice0]),
],
)
]
)
plotly.offline.plot(fig, filename=path_figures+'with_toggle.html', include_mathjax='cdn')
Some help on how to use this functionality would be highly appreciated.