reporting: change vline to accept only one dates

remove-priordens
Houtan Bastani 2014-05-20 14:28:59 +02:00
parent 120aa7ede7
commit 5b29f183b3
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ assert(~(strcmp(o.graphLineStyle, 'none') && isempty(o.graphMarker)), ['@report_
'you must provide at least one of graphLineStyle and graphMarker']);
% Validate graphVline
assert(isdates(o.graphVline), '@report_series.writeSeriesForGraph: graphVline must be a dates');
assert(isempty(o.graphVline) || (isdates(o.graphVline) && o.graphVline.ndat == 1), ...
'@report_series.writeSeriesForGraph: graphVline must be a dates of size one');
assert(isempty(o.graphHline) || isnumeric(o.graphHline), ...
'@report_series.writeSeriesForGraph: graphHline must a single numeric value');