Mercurial > hg > octave-lyh
changeset 8556:d81caf2e3a28
ylabel.m: handle rotation property here, not in __axis_label__.m
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 21 Jan 2009 11:48:32 -0500 |
parents | 821c0a7efbee |
children | ab82e19002c4 |
files | scripts/ChangeLog scripts/plot/__axis_label__.m scripts/plot/ylabel.m |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,9 @@ 2009-01-21 John W. Eaton <jwe@octave.org> + * plot/ylabel.m: Insert rotation property in varargin before + passing it on to __axis_label__. + * plot/__axis_label__.m: Don't set rotation for ylabel here. + * plot/title.m: Insert horizontalalignment property in varargin before passing it on to __axis_label__.
--- a/scripts/plot/__axis_label__.m +++ b/scripts/plot/__axis_label__.m @@ -26,17 +26,12 @@ ## FIXME -- should be able to use text instead of __go_text__. ca = gca (); - if (strcmp (caller, "ylabel")) - rot = 90; - else - rot = 0; - endif h = __go_text__ (ca, "fontangle", get (ca, "fontangle"), "fontname", get (ca, "fontname"), "fontsize", get (ca, "fontsize"), "fontunits", get (ca, "fontunits"), "fontweight", get (ca, "fontweight"), - "string", txt, "rotation", rot, varargin{:}); + "string", txt, varargin{:}); set (ca, caller, h); if (nargout > 0) retval = h;