Skip to content

Commit 6e2ba19

Browse files
committed
Updates
1 parent ceb0576 commit 6e2ba19

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

plotly/plotlyfig_aux/core/updateData.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
updateBar3h(obj, dataIndex);
3030
elseif strcmpi(obj.PlotOptions.TreatAs, 'surf')
3131
updateSurf(obj, dataIndex);
32-
elseif strcmpi(obj.PlotOptions.TreatAs, 'comet')
32+
elseif strcmpi(obj.PlotOptions.TreatAs, 'comet') || strcmpi(obj.PlotOptions.TreatAs, 'comet3')
3333
updateComet(obj, dataIndex);
3434
% this one will be revomed
3535
elseif strcmpi(obj.PlotOptions.TreatAs, 'streamtube')
@@ -197,7 +197,7 @@
197197
%- Play Button Options-%
198198
opts{1} = nan;
199199
opts{2}.frame.duration = 10;
200-
opts{2}.frame.redraw = false;
200+
opts{2}.frame.redraw = true;
201201
opts{2}.fromcurrent = true;
202202
opts{2}.mode = 'immediate';
203203
opts{2}.transition.duration = 0;

plotly/plotlyfig_aux/handlegraphics/updateComet.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ function updateComet(obj,plotIndex)
5050

5151
%-------------------------------------------------------------------------%
5252

53+
ax = obj.State.Plot(plotIndex).AssociatedAxis;
5354
%-AXIS INDEX-%
54-
axIndex = obj.getAxisIndex(obj.State.Plot(plotIndex).AssociatedAxis);
55+
axIndex = obj.getAxisIndex(ax);
5556

5657
%-PLOT DATA STRUCTURE- %
5758
plot_data = get(obj.State.Plot(plotIndex).Handle);
@@ -241,4 +242,5 @@ function updateComet(obj,plotIndex)
241242
obj.frames{i}.data{plotIndex} = DD;
242243
end
243244
end
245+
244246
end

0 commit comments

Comments
 (0)