Mercurial > hg > octave-nkf
diff scripts/plot/zlabel.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 | 4c8a2e4e0717 |
line wrap: on
line diff
--- a/scripts/plot/zlabel.m +++ b/scripts/plot/zlabel.m @@ -26,8 +26,16 @@ ## Created: 3 July 95 ## Adapted-By: jwe -function zlabel (varargin) +function h = zlabel (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__ ("zlabel", varargin{:}); + if (nargout > 0) + h = __axis_label__ ("zlabel", varargin{:}); + else + __axis_label__ ("zlabel", varargin{:}); + endif endfunction