Mercurial > hg > octave-thorsten
comparison scripts/plot/title.m @ 5252:3d9afb170a39
[project @ 2005-03-28 18:40:35 by jwe]
author | jwe |
---|---|
date | Mon, 28 Mar 2005 18:40:35 +0000 |
parents | 32c569794216 |
children | 6b91c98e3db0 |
comparison
equal
deleted
inserted
replaced
5251:454e3c98300d | 5252:3d9afb170a39 |
---|---|
32 if (nargin != 1) | 32 if (nargin != 1) |
33 usage ("title (text)"); | 33 usage ("title (text)"); |
34 endif | 34 endif |
35 | 35 |
36 if (isstr (text)) | 36 if (isstr (text)) |
37 eval (sprintf ("__gnuplot_set__ title \"%s\"", | 37 __gnuplot_raw__ (sprintf ("set title \"%s\";\n", |
38 undo_string_escapes (undo_string_escapes (text)))); | 38 undo_string_escapes (text))); |
39 if (automatic_replot) | 39 if (automatic_replot) |
40 replot (); | 40 replot (); |
41 endif | 41 endif |
42 else | 42 else |
43 error ("title: text must be a string"); | 43 error ("title: text must be a string"); |