Mercurial > hg > octave-lyh
comparison scripts/plot/ylabel.m @ 904:3470f1e25a79
[project @ 1994-11-09 21:22:15 by jwe]
author | jwe |
---|---|
date | Wed, 09 Nov 1994 21:22:15 +0000 |
parents | 16a24e76d6e0 |
children | 3f257ab07921 |
comparison
equal
deleted
inserted
replaced
903:b3692d63cca3 | 904:3470f1e25a79 |
---|---|
1 # Copyright (C) 1993 John W. Eaton | 1 # Copyright (C) 1993, 1994 John W. Eaton |
2 # | 2 # |
3 # This file is part of Octave. | 3 # This file is part of Octave. |
4 # | 4 # |
5 # Octave is free software; you can redistribute it and/or modify it | 5 # Octave is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License as published by the | 6 # under the terms of the GNU General Public License as published by the |
25 # | 25 # |
26 # See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, | 26 # See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, |
27 # bar, stairs, gplot, gsplot, replot, xlabel, title | 27 # bar, stairs, gplot, gsplot, replot, xlabel, title |
28 | 28 |
29 if (nargin != 1) | 29 if (nargin != 1) |
30 error ("usage: ylabel (text)"); | 30 usage ("ylabel (text)"); |
31 endif | 31 endif |
32 | 32 |
33 if (isstr (text)) | 33 if (isstr (text)) |
34 command = sprintf ("set ylabel \"%s\"", text); | 34 command = sprintf ("set ylabel \"%s\"", text); |
35 eval (command); | 35 eval (command); |
36 else | 36 else |
37 error ("error: ylabel: text must be a string"); | 37 error ("ylabel: text must be a string"); |
38 endif | 38 endif |
39 | 39 |
40 endfunction | 40 endfunction |