comparison scripts/plot/__axis_label__.m @ 5152:b111ca4715c6

[project @ 2005-02-21 19:41:23 by jwe]
author jwe
date Mon, 21 Feb 2005 19:41:23 +0000
parents 78954aeaf321
children eecc24b92d97
comparison
equal deleted inserted replaced
5151:b142b5a0d6be 5152:b111ca4715c6
30 usage ("__axis_label__ (caller, text)"); 30 usage ("__axis_label__ (caller, text)");
31 elseif (nargin == 2) 31 elseif (nargin == 2)
32 if (isstr (text)) 32 if (isstr (text))
33 eval (sprintf ("gset %s \"%s\"", caller, 33 eval (sprintf ("gset %s \"%s\"", caller,
34 undo_string_escapes (undo_string_escapes (text)))); 34 undo_string_escapes (undo_string_escapes (text))));
35 if (automatic_replot)
36 replot
37 endif
35 else 38 else
36 error ("%s: text must be a string", caller); 39 error ("%s: text must be a string", caller);
37 endif 40 endif
38 else 41 else
39 usage ("%s (text)", caller); 42 usage ("%s (text)", caller);