Skip to content

Commit 5bf88c2

Browse files
fix issue #257
1 parent e9abe34 commit 5bf88c2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

plotly/plotlyfig_aux/handlegraphics/updateStem.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,12 @@
6161

6262
obj.data{dataIndex} = stem_temp_data;
6363

64+
%------------------------------------------------------------------------%
65+
66+
%-put y-zeroline-%
67+
[~, ysource] = findSourceAxis(obj,dataIndex);
68+
eval(['obj.layout.yaxis' num2str(ysource) '.zeroline = true;']);
69+
70+
%------------------------------------------------------------------------%
71+
6472
end

plotly/plotlyfig_aux/helpers/extractLineMarker.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
end
5656

5757
marker.symbol = marksymbol;
58-
marker.maxdisplayed=length(line_data.MarkerIndices)+1;
58+
if isfield(line_data, 'MarkerIndices')
59+
marker.maxdisplayed=length(line_data.MarkerIndices)+1;
60+
end
5961
end
6062

6163
%-------------------------------------------------------------------------%

0 commit comments

Comments
 (0)