Skip to content
Snippets Groups Projects
Commit 6d71e536 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: include graph title in tikz code as opposed to latex

parent 73142f3e
Branches
Tags
No related merge requests found
......@@ -31,14 +31,5 @@ function o = write(o, fid)
assert(fid ~= -1);
o = writeGraphFile(o);
if ~isempty(o.title)
fprintf(fid,'\\begin{tabular}[x]{@{}c@{}}%s\\\\',o.title);
end
fprintf(fid, '\\input{%s}', o.figname);
if ~isempty(o.title)
fprintf(fid,'\\end{tabular}');
end
end
\ No newline at end of file
......@@ -88,6 +88,10 @@ fprintf(fid, ['},\n',...
'axis lines=box,\n'...
'unbounded coords=jump,\n'], o.width, o.height);
if ~isempty(o.title)
fprintf(fid, 'title=%s,\n', o.title);
end
if o.xAxisTight
fprintf(fid, 'enlarge x limits=false,\n');
else
......
......@@ -146,7 +146,7 @@ rep = CommResidTablePage(rep, db_q, dc_q, trange, dates('2012q2'));
%Page 1
rep = rep.addPage('title', 'Jan1 vs Jan2', ...
'titleFormat', '\large\bfseries');
rep = rep.addSection('height', '60mm');
rep = rep.addSection();
rep = rep.addGraph('title', 'World Real Oil Price Index', ...
'xrange', prange, ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment