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

time-shift
Houtan Bastani 2014-02-14 15:33:28 +01:00
parent 73142f3eeb
commit 6d71e53646
3 changed files with 5 additions and 10 deletions

View File

@ -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

View 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

View File

@ -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, ...