comparison scripts/plot/top_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 ("top_title (text)"); 33 usage ("top_title (text)");
34 endif 34 endif
35 35
36 if (isstr (text)) 36 if (isstr (text))
37 __gnuplot_set__ bottom_title; 37 __gnuplot_raw__ ("set bottom_title;\n")
38 __gnuplot_set__ title; 38 __gnuplot_raw__ ("set title;\n")
39 eval (sprintf ("__gnuplot_set__ top_title \"%s\"", 39 __gnuplot_raw__ (sprintf ("set top_title \"%s\";\n",
40 undo_string_escapes (undo_string_escapes (text)))); 40 undo_string_escapes (text)));
41 if (automatic_replot) 41 if (automatic_replot)
42 replot (); 42 replot ();
43 endif 43 endif
44 else 44 else
45 error ("error: top_title: text must be a string"); 45 error ("error: top_title: text must be a string");