Commit 7a468050 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: add graph option to change title font size

parent f02e7f77
......@@ -37,6 +37,7 @@ o.series = {};
o.title = '';
o.titleFormat = '';
o.titleFontSize = 'normalsize'
o.ylabel = '';
o.xlabel = '';
......@@ -149,10 +150,12 @@ valid_legend_locations = ...
assert(any(strcmp(o.legendLocation, valid_legend_locations)), ...
['@graph.graph: legendLocation must be one of ' strjoin(valid_legend_locations, ' ')]);
valid_legend_font_sizes = {'tiny', 'scriptsize', 'footnotesize', 'small', ...
valid_font_sizes = {'tiny', 'scriptsize', 'footnotesize', 'small', ...
'normalsize', 'large', 'Large', 'LARGE', 'huge', 'Huge'};
assert(any(strcmp(o.legendFontSize, valid_legend_font_sizes)), ...
['@graph.graph: legendFontSize must be one of ' strjoin(valid_legend_font_sizes)]);
assert(any(strcmp(o.legendFontSize, valid_font_sizes)), ...
['@graph.graph: legendFontSize must be one of ' strjoin(valid_font_sizes)]);
assert(any(strcmp(o.titleFontSize, valid_font_sizes)), ...
['@graph.graph: titleFontSize must be one of ' strjoin(valid_font_sizes)]);
valid_legend_orientations = {'vertical', 'horizontal'};
assert(any(strcmp(o.legendOrientation, valid_legend_orientations)), ...
......
......@@ -189,6 +189,10 @@ if ~isempty(o.miscTikzAxisOptions)
end
fprintf(fid, ']\n');
if ~isempty(o.title{1})
fprintf(fid, '\\tikzstyle{every axis title}=[font=\\%s]\n', o.titleFontSize);
end
if ~isempty(o.shade)
fprintf(fid, '%%shading\n');
stringsdd = strings(dd);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment