Skip to content

Commit 9f6700f

Browse files
Fix issue where call to unique() failed because the input cell array had strings and char arrays
1 parent 2da9493 commit 9f6700f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly/plotlyfig_aux/core/updateLegendMultipleAxes.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
allDomain(traceIndex, 2) = max(yAxis.domain);
3434
end
3535

36-
[~, groupIndex] = unique(allNames);
36+
[~, groupIndex] = unique(string(allNames));
3737

3838
for traceIndex = groupIndex'
3939
obj.data{traceIndex}.showlegend = allShowLegens(traceIndex);

0 commit comments

Comments
 (0)