Skip to content

Commit ceb0576

Browse files
committed
Modified animation controls
1 parent 82c1a93 commit ceb0576

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

plotly/plotlyfig_aux/core/updateData.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,21 @@
198198
opts{1} = nan;
199199
opts{2}.frame.duration = 10;
200200
opts{2}.frame.redraw = false;
201+
opts{2}.fromcurrent = true;
201202
opts{2}.mode = 'immediate';
202203
opts{2}.transition.duration = 0;
203204

204205
button{1}.label = '▶';
205206
button{1}.method = 'animate';
206207
button{1}.args = opts;
208+
209+
opts{1} = {nan};
210+
opts{2}.transition.duration = 0;
211+
opts{2}.frame.duration = 0;
212+
213+
button{2}.label = '◼';
214+
button{2}.method = 'animate';
215+
button{2}.args = opts;
207216

208217
obj.layout.updatemenus{1}.type = 'buttons';
209218
obj.layout.updatemenus{1}.buttons = button;

0 commit comments

Comments
 (0)