reporting: set up graph shade opacity
parent
67360a1711
commit
7cf2d46463
|
@ -142,8 +142,9 @@ if ~isempty(o.shade)
|
||||||
date2string(o.shade(1)) ' or ' date2string(o.shade(end)) ' is not in the date ' ...
|
date2string(o.shade(1)) ' or ' date2string(o.shade(end)) ' is not in the date ' ...
|
||||||
'range of data selected.']);
|
'range of data selected.']);
|
||||||
fprintf(fid, ['%%shading\n\\addplot[area legend,solid,fill=%s,' ...
|
fprintf(fid, ['%%shading\n\\addplot[area legend,solid,fill=%s,' ...
|
||||||
'opacity=.2,draw=black,forget plot]\ntable[row sep=crcr]{\nx y\\\\\n%d %d\\\\\n%d %d\\\\\n%d %d\\\\\n%d %d\\\\\n};\n'], ...
|
'opacity=%f,draw=black,forget plot]\ntable[row sep=crcr]{\nx ' ...
|
||||||
o.shadeColor, x1, ymin, x1, ymax, x2, ymax, x2, ymin);
|
'y\\\\\n%d %d\\\\\n%d %d\\\\\n%d %d\\\\\n%d %d\\\\\n};\n'], ...
|
||||||
|
o.shadeColor, o.shadeOpacity, x1, ymin, x1, ymax, x2, ymax, x2, ymin);
|
||||||
end
|
end
|
||||||
|
|
||||||
for i=1:ne
|
for i=1:ne
|
||||||
|
|
Loading…
Reference in New Issue