Mercurial > hg > octave-lyh
diff 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 |
line wrap: on
line diff
--- a/scripts/plot/__axis_label__.m +++ b/scripts/plot/__axis_label__.m @@ -29,7 +29,14 @@ if (ischar (txt)) ## FIXME -- should be able to use text instead of __go_text__. ca = gca (); - h = __go_text__ (ca, "string", txt, varargin{:}); + + if (strcmp (caller, "ylabel")) + rot = 90; + else + rot = 0; + endif + + h = __go_text__ (ca, "string", txt, "rotation", rot, varargin{:}); set (ca, caller, h); if (nargout > 0) retval = h;