Skip to content

Commit db33f39

Browse files
authored
Merge pull request #227 from plotly/issue176
fix issue #176
2 parents 07f872b + 73ebe79 commit db33f39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotly/plotlyfig_aux/handlegraphics/updateScatter.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ function updateScatter(obj,scatterIndex)
173173
if length(scatter_data) > 1
174174
obj.data{scatterIndex}.marker.line.color{m} = childmarker.line.color{1};
175175
else
176-
if iscell(childmarker.line.color)
177-
obj.data{scatterIndex}.marker.line.color = childmarker.line.color{1};
178-
else
176+
if length(childmarker.line.color) > 3
179177
obj.data{scatterIndex}.marker.line.color = childmarker.line.color;
178+
else
179+
obj.data{scatterIndex}.marker.line.color = childmarker.line.color{1};
180180
end
181181
end
182182

0 commit comments

Comments
 (0)