reporting: include graph title in tikz code as opposed to latex
parent
73142f3eeb
commit
6d71e53646
|
@ -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
|
|
@ -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, ...
|
||||
|
|
Loading…
Reference in New Issue