I’m trying to animate surface plot, but when i try to add button in updatemenus for animation react says me that ‘buttons’ is not defined, someone tried to animate like this? What i’m doing wrong?
<Plot
data={[
{
type: "surface",
x: this.state.x,
y: this.state.t_arr,
z: this.state.frames[0]
}
]}
frames={this.state.frames}
updatemenus={[
buttons = [
{method: 'animate', args: [[]], label: 'sine'},
]
]}
/>