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

reporting: graph: add option yTickLabelScaled

parent 04c8870f
Branches
No related tags found
No related merge requests found
...@@ -72,6 +72,7 @@ o.xTickLabels = {}; ...@@ -72,6 +72,7 @@ o.xTickLabels = {};
o.xTickLabelRotation = 0; o.xTickLabelRotation = 0;
o.xTickLabelAnchor = 'east'; o.xTickLabelAnchor = 'east';
o.yTickLabelScaled = true;
o.yTickLabelPrecision = 0; o.yTickLabelPrecision = 0;
o.yTickLabelFixed = true; o.yTickLabelFixed = true;
o.yTickLabelZeroFill = true; o.yTickLabelZeroFill = true;
...@@ -137,6 +138,7 @@ assert(ischar(o.xTickLabelAnchor), '@graph.graph: xTickLabelAnchor must be a str ...@@ -137,6 +138,7 @@ assert(ischar(o.xTickLabelAnchor), '@graph.graph: xTickLabelAnchor must be a str
assert(isint(o.yTickLabelPrecision), '@graph.graph: o.yTickLabelPrecision must be an integer'); assert(isint(o.yTickLabelPrecision), '@graph.graph: o.yTickLabelPrecision must be an integer');
assert(islogical(o.yTickLabelFixed), '@graph.graph: yTickLabelFixed must be either true or false'); assert(islogical(o.yTickLabelFixed), '@graph.graph: yTickLabelFixed must be either true or false');
assert(islogical(o.yTickLabelZeroFill), '@graph.graph: yTickLabelZeroFill must be either true or false'); assert(islogical(o.yTickLabelZeroFill), '@graph.graph: yTickLabelZeroFill must be either true or false');
assert(islogical(o.yTickLabelScaled), '@graph.graph: yTickLabelScaled must be either true or false');
assert(ischar(o.shadeColor), '@graph.graph: shadeColor must be a string'); assert(ischar(o.shadeColor), '@graph.graph: shadeColor must be a string');
assert(ischar(o.zeroLineColor), '@graph.graph: zeroLineColor must be a string'); assert(ischar(o.zeroLineColor), '@graph.graph: zeroLineColor must be a string');
......
...@@ -186,6 +186,10 @@ if ~isempty(o.ylabel) ...@@ -186,6 +186,10 @@ if ~isempty(o.ylabel)
fprintf(fid, 'ylabel=%s,\n', o.ylabel); fprintf(fid, 'ylabel=%s,\n', o.ylabel);
end end
if ~o.yTickLabelScaled
fprintf(fid, 'scaled y ticks = false,\n');
end
if ~isempty(o.miscTikzAxisOptions) if ~isempty(o.miscTikzAxisOptions)
fprintf(fid, '%s', o.miscTikzAxisOptions); fprintf(fid, '%s', o.miscTikzAxisOptions);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment