4
|
1 function title (text) |
|
2 |
|
3 # usage: title (text) |
|
4 # |
|
5 # Defines a title for a plot. The title will appear the next time a |
|
6 # plot is displayed. |
|
7 # |
|
8 # See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, |
|
9 # bar, stairs, gplot, gsplot, replot, xlabel, ylabel |
|
10 |
|
11 if (nargin != 1) |
|
12 error ("usage: title (text)"); |
|
13 endif |
|
14 |
|
15 if (isstr (text)) |
|
16 command = sprintf ("set title \"%s\"", text); |
|
17 eval (command); |
|
18 else |
|
19 error ("error: title: text must be a string"); |
|
20 endif |
|
21 |
|
22 endfunction |