Mercurial > hg > octave-lyh
view scripts/plot/xlabel.m @ 131:5b46fbec1488
[project @ 1993-09-28 14:23:43 by jwe]
author | jwe |
---|---|
date | Tue, 28 Sep 1993 14:23:47 +0000 |
parents | b4df021f796c |
children | 16a24e76d6e0 |
line wrap: on
line source
function xlabel (text) # usage: xlabel (text) # # Defines a label for the x-axis of a plot. The label will appear the # next time a plot is displayed. # # See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, # bar, stairs, gplot, gsplot, replot, ylabel, title if (nargin != 1) error ("usage: xlabel (text)"); endif if (isstr (text)) command = sprintf ("set xlabel \"%s\"", text); eval (command); else error ("error: xlabel: text must be a string"); endif endfunction