Mercurial > hg > octave-lyh
comparison scripts/plot/__axis_label__.m @ 6737:7888712d3532
[project @ 2007-06-15 21:45:50 by jwe]
author | jwe |
---|---|
date | Fri, 15 Jun 2007 21:45:50 +0000 |
parents | b2096bb759b1 |
children | 76e3d985ae56 |
comparison
equal
deleted
inserted
replaced
6736:751f340d486c | 6737:7888712d3532 |
---|---|
27 function retval = __axis_label__ (caller, txt, varargin) | 27 function retval = __axis_label__ (caller, txt, varargin) |
28 | 28 |
29 if (ischar (txt)) | 29 if (ischar (txt)) |
30 ## FIXME -- should be able to use text instead of __go_text__. | 30 ## FIXME -- should be able to use text instead of __go_text__. |
31 ca = gca (); | 31 ca = gca (); |
32 h = __go_text__ (ca, "string", txt, varargin{:}); | 32 |
33 if (strcmp (caller, "ylabel")) | |
34 rot = 90; | |
35 else | |
36 rot = 0; | |
37 endif | |
38 | |
39 h = __go_text__ (ca, "string", txt, "rotation", rot, varargin{:}); | |
33 set (ca, caller, h); | 40 set (ca, caller, h); |
34 if (nargout > 0) | 41 if (nargout > 0) |
35 retval = h; | 42 retval = h; |
36 endif | 43 endif |
37 else | 44 else |