reporting: update test for fan charts, #867
parent
c9b404fc1b
commit
1c25b7ddaa
|
@ -257,26 +257,46 @@ rep = rep.addSeries('graphHline', 460, ...
|
|||
'graphLineColor', 'red', ...
|
||||
'graphLineWidth', 1.5);
|
||||
|
||||
a=dseries([1:200]', '1984q1');
|
||||
b=a;
|
||||
c=a;
|
||||
d=a;
|
||||
b(dates('2012q2'):dates('2015q2'))=b(dates('2012q2'):dates('2015q2'))+2;
|
||||
c(dates('2012q2'):dates('2015q2'))=c(dates('2012q2'):dates('2015q2'))+4;
|
||||
d(dates('2012q2'):dates('2015q2'))=d(dates('2012q2'):dates('2015q2'))+6;
|
||||
|
||||
rep = rep.addGraph('title', 'Equilibrium World Real Food Price', ...
|
||||
'xrange', prange, ...
|
||||
'shade', srange, ...
|
||||
'showLegend', true, ...
|
||||
'xTickLabelRotation', 0);
|
||||
rep = rep.addSeries('data', db_q{'LRPFOOD_BAR_WORLD'}, ...
|
||||
rep = rep.addSeries('data', a, ...
|
||||
'graphLineColor', 'blue', ...
|
||||
'graphLineWidth', 1.5, ...
|
||||
'graphLegendName', 'baseline', ...
|
||||
'graphMiscTikzAddPlotOptions', 'mark=halfcircle*,color=red');
|
||||
rep = rep.addSeries('data', dc_q{'LRPFOOD_BAR_WORLD'}, ...
|
||||
rep = rep.addSeries('data', b, ...
|
||||
'graphLineColor', 'blue', ...
|
||||
'graphLineStyle', 'dashed', ...
|
||||
'graphLineWidth', 1.5, ...
|
||||
'graphLegendName', 'control', ...
|
||||
'graphMiscTikzAddPlotOptions', 'mark=halfcircle*,mark options={rotate=90,scale=3}');
|
||||
'graphMiscTikzAddPlotOptions', 'mark=halfcircle*,mark options={rotate=90,scale=3}', ...
|
||||
'graphFanShadeColor', 'red', 'graphFanShadeOpacity', 40);
|
||||
rep = rep.addSeries('data', c, ...
|
||||
'graphLineColor', 'blue', ...
|
||||
'graphLineStyle', 'dashed', ...
|
||||
'graphLineWidth', 1.5, ...
|
||||
'graphLegendName', 'control', ....
|
||||
'graphFanShadeColor', 'red', 'graphFanShadeOpacity', 30);
|
||||
rep = rep.addSeries('data', d, ...
|
||||
'graphLineColor', 'blue', ...
|
||||
'graphLineStyle', 'dashed', ...
|
||||
'graphLineWidth', 1.5, ...
|
||||
'graphLegendName', 'control', ...
|
||||
'graphFanShadeColor', 'red', 'graphFanShadeOpacity', 20);
|
||||
|
||||
%% Write & Compile Report
|
||||
rep.write();
|
||||
rep.compile();
|
||||
toc
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue