Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f80fe87

Browse files
fix issue #450. adding stackedplot functionality
1 parent 8a89239 commit f80fe87

File tree

4 files changed

+417
-7
lines changed

4 files changed

+417
-7
lines changed

plotly/plotlyfig.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ function validate(obj)
776776
% reset dataget(obj.State.Figure.Handle,'Children')
777777
obj.data = {};
778778
obj.PlotOptions.nPlots = obj.State.Figure.NumPlots;
779-
obj.PlotlyDefaults.anIndex = obj.State.Figure.NumTexts + 1;
779+
obj.PlotlyDefaults.anIndex = obj.State.Figure.NumTexts;
780780

781781
% reset layout
782782
obj.layout = struct();

plotly/plotlyfig_aux/core/updateData.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@
157157
updateStair(obj, dataIndex);
158158
case 'stairseries'
159159
updateStairseries(obj, dataIndex);
160+
case 'stackedplot'
161+
updateStackedplot(obj, dataIndex);
160162
case 'stem'
161163
updateStem(obj, dataIndex);
162164
case 'stemseries'

0 commit comments

Comments
 (0)