Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
5f0746aa
Commit
5f0746aa
authored
Mar 29, 2013
by
Houtan Bastani
Browse files
reporting: @graph: issue warning if no series to plot
parent
c8e59f13
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
5f0746aa
...
...
@@ -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
;
...
...
matlab/reports/@graph/write.m
View file @
5f0746aa
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment