Mercurial > octave
annotate scripts/plot/appearance/private/__axis_label__.m @ 23219:3ac9f9ecfae5 stable
maint: Update copyright dates.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 22 Feb 2017 12:39:29 -0500 |
parents | e9a0469dedd9 |
children | 092078913d54 |
rev | line source |
---|---|
23219
3ac9f9ecfae5
maint: Update copyright dates.
John W. Eaton <jwe@octave.org>
parents:
23083
diff
changeset
|
1 ## Copyright (C) 1996-2017 John W. Eaton |
3479 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
5 ## Octave is free software; you can redistribute it and/or modify it | |
6 ## under the terms of the GNU General Public License as published by | |
7016 | 7 ## the Free Software Foundation; either version 3 of the License, or (at |
8 ## your option) any later version. | |
3479 | 9 ## |
10 ## Octave is distributed in the hope that it will be useful, but | |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
14 ## | |
15 ## You should have received a copy of the GNU General Public License | |
7016 | 16 ## along with Octave; see the file COPYING. If not, see |
17 ## <http://www.gnu.org/licenses/>. | |
3479 | 18 |
8812
7d48766c21a5
use consistent format for doc strings of internal functions
John W. Eaton <jwe@octave.org>
parents:
8557
diff
changeset
|
19 ## -*- texinfo -*- |
20852
516bb87ea72e
2015 Code Sprint: remove class of function from docstring for all m-files.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
20 ## @deftypefn {} {} __axis_label__ (@var{caller}, @var{h}, @var{txt}, @dots{}) |
6895 | 21 ## Undocumented internal function. |
8812
7d48766c21a5
use consistent format for doc strings of internal functions
John W. Eaton <jwe@octave.org>
parents:
8557
diff
changeset
|
22 ## @end deftypefn |
3479 | 23 |
24 ## Author: jwe | |
25 | |
17053
27062be131d6
__axis_label__.m: Rename ax to hax. Align spacing in code.
Rik <rik@octave.org>
parents:
14138
diff
changeset
|
26 function retval = __axis_label__ (hax, caller, txt, varargin) |
3479 | 27 |
17053
27062be131d6
__axis_label__.m: Rename ax to hax. Align spacing in code.
Rik <rik@octave.org>
parents:
14138
diff
changeset
|
28 h = get (hax, caller); |
8557
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
29 |
17053
27062be131d6
__axis_label__.m: Rename ax to hax. Align spacing in code.
Rik <rik@octave.org>
parents:
14138
diff
changeset
|
30 set (h, "fontangle", get (hax, "fontangle"), |
27062be131d6
__axis_label__.m: Rename ax to hax. Align spacing in code.
Rik <rik@octave.org>
parents:
14138
diff
changeset
|
31 "fontname", get (hax, "fontname"), |
27062be131d6
__axis_label__.m: Rename ax to hax. Align spacing in code.
Rik <rik@octave.org>
parents:
14138
diff
changeset
|
32 "fontunits", get (hax, "fontunits"), # must precede fontsize |
22292
378f8c0de848
Implement TitleFontSizeMultiplier, LabelFontSizeMultiplier, TitleFontWeight props.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
33 "fontsize", get (hax, "LabelFontSizeMultiplier") * |
378f8c0de848
Implement TitleFontSizeMultiplier, LabelFontSizeMultiplier, TitleFontWeight props.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
34 get (hax, "fontsize"), |
17053
27062be131d6
__axis_label__.m: Rename ax to hax. Align spacing in code.
Rik <rik@octave.org>
parents:
14138
diff
changeset
|
35 "fontweight", get (hax, "fontweight"), |
27062be131d6
__axis_label__.m: Rename ax to hax. Align spacing in code.
Rik <rik@octave.org>
parents:
14138
diff
changeset
|
36 "string", txt, |
27062be131d6
__axis_label__.m: Rename ax to hax. Align spacing in code.
Rik <rik@octave.org>
parents:
14138
diff
changeset
|
37 varargin{:}); |
11589
b0084095098e
missing semicolons in script files
John W. Eaton <jwe@octave.org>
parents:
11587
diff
changeset
|
38 |
12965
22bc9ec80c2c
allow multi-line string property for text objects using cell arrays or char matrices
Ben Abbott <bpabbott@mac.com>
parents:
12319
diff
changeset
|
39 if (nargout > 0) |
22bc9ec80c2c
allow multi-line string property for text objects using cell arrays or char matrices
Ben Abbott <bpabbott@mac.com>
parents:
12319
diff
changeset
|
40 retval = h; |
4529 | 41 endif |
42 | |
3479 | 43 endfunction |