Skip to content
Snippets Groups Projects
Commit 150e265c authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: check passed values

parent f8a2e97e
Branches
Tags
No related merge requests found
......@@ -140,6 +140,13 @@ assert(isempty(o.xTicks) || isfloat(o.xTicks),...
'@graph.graph: xTicks must be a numerical array');
assert(iscellstr(o.xTickLabels), ...
'@graph.graph: xTickLabels must be a cell array of strings');
if ~isempty(o.xTickLabels)
assert(~isempty(o.xTicks), '@graph.graph: if you set xTickLabels, you must set xTicks');
end
if ~isempty(o.xTicks)
assert(~isempty(o.xTickLabels), '@graph.graph: if you set xTicks, you must set xTickLabels');
end
% using o.seriesToUse, create series objects and put them in o.seriesElements
if ~isempty(o.data)
if isempty(o.seriesToUse)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment