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

reporting: change tableMarkers to showTableMarkers

parent f03bf0a6
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ o.graph_marker_edge_color = 'auto'; ...@@ -44,7 +44,7 @@ o.graph_marker_edge_color = 'auto';
o.graph_marker_face_color = 'auto'; o.graph_marker_face_color = 'auto';
o.graph_marker_size = 6; o.graph_marker_size = 6;
o.table_markers = false; o.showTableMarkers = false;
o.table_neg_color = 'red'; o.table_neg_color = 'red';
o.table_pos_color = 'blue'; o.table_pos_color = 'blue';
......
...@@ -42,7 +42,7 @@ assert(~isempty(o.data) && isa(o.data, 'dynSeries'), ... ...@@ -42,7 +42,7 @@ assert(~isempty(o.data) && isa(o.data, 'dynSeries'), ...
assert(ischar(o.color), '@series.write: color must be a string'); assert(ischar(o.color), '@series.write: color must be a string');
assert(ischar(o.table_neg_color), '@series.write: table_neg_color must be a string'); assert(ischar(o.table_neg_color), '@series.write: table_neg_color must be a string');
assert(ischar(o.table_pos_color), '@series.write: table_pos_color must be a string'); assert(ischar(o.table_pos_color), '@series.write: table_pos_color must be a string');
assert(islogical(o.table_markers), '@series.write: table_markers must be a string'); assert(islogical(o.showTableMarkers), '@series.write: showTableMarkers must be a string');
assert(islogical(o.table_align_right), '@series.write: table_align_right must be a string'); assert(islogical(o.table_align_right), '@series.write: table_align_right must be a string');
%% Write Output %% Write Output
...@@ -63,7 +63,7 @@ for i=1:size(data,1) ...@@ -63,7 +63,7 @@ for i=1:size(data,1)
thisCellData = round(data(i)*precision)/precision; thisCellData = round(data(i)*precision)/precision;
fprintf(fid, ' &'); fprintf(fid, ' &');
if o.table_markers if o.showTableMarkers
if thisCellData < 0 if thisCellData < 0
fprintf(fid, '\\color{%s}', o.table_neg_color); fprintf(fid, '\\color{%s}', o.table_neg_color);
elseif thisCellData > 0 elseif thisCellData > 0
...@@ -74,7 +74,7 @@ for i=1:size(data,1) ...@@ -74,7 +74,7 @@ for i=1:size(data,1)
fprintf(fid, dataString, thisCellData); fprintf(fid, dataString, thisCellData);
if o.table_markers if o.showTableMarkers
fprintf(fid, ']'); fprintf(fid, ']');
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment