change graph in reporting test to show how to associate integers with time periods

time-shift
Houtan Bastani 2019-05-10 11:02:32 +02:00
parent 5d05adeab6
commit 13547964dc
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 2 additions and 2 deletions

View File

@ -178,8 +178,8 @@ rep = rep.addSeries('data', db_q{'LRPOIL_BAR_WORLD'}, ...
rep = rep.addGraph('title', 'World Real Food Price Index', ...
'xrange', prange, ...
'shade', srange, ...
'xTicks', [1,5,10,15,find(srange(1)==prange),length(prange)], ...
'xTickLabels',{startpoint{:},'2008Q1','2009Q2','2010Q3',shaded{:}, endpoint{:}},...
'xTicks', 1:length(prange), ...
'xTickLabels', strsplit(num2str(1:length(prange))), ...
'xTickLabelRotation', 0, ...
'showLegend', true, ...
'legendAt', [.5,.5]);