Skip to content

Commit 1186042

Browse files
Add support for 'none' text interpreter - without this multiline titles may crash
1 parent ef368c1 commit 1186042

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plotly/plotlyfig_aux/core/updateAnnotation.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@
9595
obj.layout.annotations{anIndex}.text = parseString(text_data.String,text_data.Interpreter);
9696
if isempty(text_data.String)
9797
obj.layout.annotations{anIndex}.text = '<b></b>'; %empty string annotation
98+
else
99+
obj.layout.annotations{anIndex}.text = char("<b>"+join(string( ...
100+
obj.layout.annotations{anIndex}.text),"<br>")+"</b>");
98101
end
99102
else
100103
if ~strcmpi(obj.PlotOptions.TreatAs, 'pie3')

0 commit comments

Comments
 (0)