Mercurial > hg > octave-nkf
diff scripts/plot/xlabel.m @ 4529:78954aeaf321
[project @ 2003-10-04 19:35:36 by jwe]
author | jwe |
---|---|
date | Sat, 04 Oct 2003 19:35:36 +0000 |
parents | e0b7a493e5a8 |
children | c08cb1098afc |
line wrap: on
line diff
--- a/scripts/plot/xlabel.m +++ b/scripts/plot/xlabel.m @@ -30,8 +30,16 @@ ## Author: jwe -function xlabel (varargin) +function h = xlabel (varargin) + + ## XXX FIXME XXX -- eventually, we will return a graphics handle. For + ## now, return something, so that calls that expect a handle won't + ## fail (at least immediately). - __axis_label__ ("xlabel", varargin{:}); + if (nargout > 0) + h = __axis_label__ ("xlabel", varargin{:}); + else + __axis_label__ ("xlabel", varargin{:}); + endif endfunction