Commit 5f0746aa authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: @graph: issue warning if no series to plot

parent c8e59f13
......@@ -33,6 +33,11 @@ if ~isempty(o.figname)
o.figname);
end
if ~o.seriesElements.numElements()
warning('@graph.crepateGraph: no series to plot, returning');
return;
end
disp('creating plot..........');
h = figure('visible','off');
hold on;
......
......@@ -33,5 +33,8 @@ assert(fid ~= -1);
if isempty(o.figname)
o = createGraph(o);
end
fprintf(fid, '\\input{%s}', o.figname);
if ~isempty(o.figname)
fprintf(fid, '\\input{%s}', o.figname);
end
end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment