Mercurial > hg > octave-lyh
diff scripts/plot/ylabel.m @ 3476:78e1e0007f0f
[project @ 2000-01-26 00:05:43 by jwe]
author | jwe |
---|---|
date | Wed, 26 Jan 2000 00:05:45 +0000 |
parents | d25bc039237b |
children | e0b7a493e5a8 |
line wrap: on
line diff
--- a/scripts/plot/ylabel.m +++ b/scripts/plot/ylabel.m @@ -24,17 +24,8 @@ ## Author: jwe -function ylabel (text) - - if (nargin != 1) - usage ("ylabel (text)"); - endif +function ylabel (...) - if (isstr (text)) - command = sprintf ("gset ylabel \"%s\"", text); - eval (command); - else - error ("ylabel: text must be a string"); - endif + __axis_label__ ("ylabel", all_va_args); endfunction