Mercurial > hg > octave-lyh
view scripts/plot/title.m @ 78:0fda6e1f90e0
[project @ 1993-08-30 15:40:16 by jwe]
author | jwe |
---|---|
date | Mon, 30 Aug 1993 15:40:48 +0000 |
parents | b4df021f796c |
children | 16a24e76d6e0 |
line wrap: on
line source
function title (text) # usage: title (text) # # Defines a title for a plot. The title will appear the next time a # plot is displayed. # # See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, # bar, stairs, gplot, gsplot, replot, xlabel, ylabel if (nargin != 1) error ("usage: title (text)"); endif if (isstr (text)) command = sprintf ("set title \"%s\"", text); eval (command); else error ("error: title: text must be a string"); endif endfunction