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

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

parent 258acc58
Branches
Tags
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment