Commit 5c1846eb authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: @series: fix coloring

parent e30cbef2
...@@ -59,19 +59,17 @@ end ...@@ -59,19 +59,17 @@ end
data = o.data(dates); data = o.data(dates);
data = data.data; data = data.data;
for i=1:size(data,1) for i=1:size(data,1)
thisCellData = round(data(i)*precision)/precision;
fprintf(fid, ' &'); fprintf(fid, ' &');
if o.tableShowMarkers if o.tableShowMarkers
if thisCellData < 0 if data(i) < 0
fprintf(fid, '\\color{%s}', o.tableNegColor); fprintf(fid, '\\color{%s}', o.tableNegColor);
elseif thisCellData > 0 elseif data(i) > 0
fprintf(fid, '\\color{%s}', o.tablePosColor); fprintf(fid, '\\color{%s}', o.tablePosColor);
end end
fprintf(fid, '['); fprintf(fid, '[');
end end
fprintf(fid, dataString, thisCellData); fprintf(fid, dataString, round(data(i)*precision)/precision);
if o.tableShowMarkers if o.tableShowMarkers
fprintf(fid, ']'); fprintf(fid, ']');
......
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