I know this feature used to work. However, now when I include latex in the title I get a plot with no titles.
Any ideas?
I am using:
Matlab R2017a (9.2.0.538062)
64-bit (maci64)
and
Matlab R2016b (9.1.0.441655)
64-bit(maci64)
I edited post to show a simple example.
trace1 = struct(...
'x', [1, 2, 3, 4], ...
'y', [1, 4, 9, 16], ...
'name', 'x2', ...
'type', 'scatter');
trace2 = struct(...
'x', [1, 2, 3, 4], ...
'y', [0.5, 2, 4.5, 8], ...
'name', 'x1', ...
'type', 'scatter');
data = {trace1, trace2};
layout = struct(...
'title', 'Latex Example',...
'xaxis', struct('title', '$\sqrt{(n_\text{c}(t|{T_\text{early}}))}$'), ...
'yaxis', struct('title', 'No latex'));
p = plotlyfig;
p.data=data;
p.layout=layout;
saveplotlyfig(p,'latex_example.pdf');