diff --git a/matlab/reporting/@graph/createGraph.m b/matlab/reporting/@graph/createGraph.m index 919bde15786b492810a86d3533ff3d390cecb139..a5118407740e746b04ced0fb491ed1400f0a2183 100644 --- a/matlab/reporting/@graph/createGraph.m +++ b/matlab/reporting/@graph/createGraph.m @@ -114,10 +114,6 @@ end if ~isempty(o.ylabel) ylabel(['$\textbf{\footnotesize ' o.ylabel '}$'], 'Interpreter', 'LaTex'); end - -if ~isempty(o.title) - title( o.title, 'Interpreter', 'LaTex'); -end drawnow; o.figname = [tempname '.tex']; diff --git a/matlab/reporting/@graph/write.m b/matlab/reporting/@graph/write.m index bce88cf3fce5df96a9838e82203771187efe9c76..9078b0283b99d43455383c4660f13fad52e3fac5 100644 --- a/matlab/reporting/@graph/write.m +++ b/matlab/reporting/@graph/write.m @@ -34,7 +34,15 @@ if isempty(o.figname) o = createGraph(o); end +if ~isempty(o.title) + fprintf(fid,'\\begin{tabular}[x]{@{}c@{}}%s\\\\',o.title); +end + if ~isempty(o.figname) fprintf(fid, '\\input{%s}', o.figname); end + +if ~isempty(o.title) + fprintf(fid,'\\end{tabular}',o.title); +end end \ No newline at end of file