Skip to content

Commit c527f8b

Browse files
authored
Merge pull request #330 from plotly/issue306
Issue306
2 parents 9298e52 + f7d8f24 commit c527f8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)