Skip to content

Commit f7d8f24

Browse files
fix issue #306
1 parent a8e1663 commit f7d8f24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: plotly/plotlyfig_aux/handlegraphics/updateLineseries.m

+4-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ function updateLineseries(obj,plotIndex)
132132
%-------------------------------------------------------------------------%
133133

134134
if isfield(plot_data,'ZData')
135-
if any(plot_data.ZData)
135+
136+
numbset = unique(plot_data.ZData);
137+
138+
if any(plot_data.ZData) && length(numbset)>1
136139
%-scatter z-%
137140
obj.data{plotIndex}.z = plot_data.ZData;
138141

0 commit comments

Comments
 (0)