Mercurial > hg > octave-lyh
changeset 17053:27062be131d6
__axis_label__.m: Rename ax to hax. Align spacing in code.
* scripts/plot/private/__axis_label__.m: Rename ax to hax.
Align spacing in code. Set "fontunits" before "fontsize"
to avoid triggering unnecessary listeners.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 24 Jul 2013 23:12:46 -0700 |
parents | 1118d566bcd4 |
children | 27b3a675ea6b |
files | scripts/plot/private/__axis_label__.m |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__axis_label__.m +++ b/scripts/plot/private/__axis_label__.m @@ -23,17 +23,17 @@ ## Author: jwe -function retval = __axis_label__ (ah, caller, txt, varargin) +function retval = __axis_label__ (hax, caller, txt, varargin) - h = get (ah, caller); + h = get (hax, caller); - set (h, "fontangle", get (ah, "fontangle"), - "fontname", get (ah, "fontname"), - "fontsize", get (ah, "fontsize"), - "fontunits", get (ah, "fontunits"), - "fontweight", get (ah, "fontweight"), - "string", txt, - varargin{:}); + set (h, "fontangle", get (hax, "fontangle"), + "fontname", get (hax, "fontname"), + "fontunits", get (hax, "fontunits"), # must precede fontsize + "fontsize", get (hax, "fontsize"), + "fontweight", get (hax, "fontweight"), + "string", txt, + varargin{:}); if (nargout > 0) retval = h;