Mercurial > hg > octave-nkf
annotate scripts/plot/__axis_label__.m @ 9665:1dba57e9d08d
use blas_trans_type for xgemm
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sat, 26 Sep 2009 10:41:07 +0200 |
parents | eb63fbe60fab |
children |
rev | line source |
---|---|
8920 | 1 ## Copyright (C) 1996, 1997, 2000, 2003, 2005, 2006, 2007, 2008, |
2 ## 2009 John W. Eaton | |
3479 | 3 ## |
4 ## This file is part of Octave. | |
5 ## | |
6 ## Octave is free software; you can redistribute it and/or modify it | |
7 ## under the terms of the GNU General Public License as published by | |
7016 | 8 ## the Free Software Foundation; either version 3 of the License, or (at |
9 ## your option) any later version. | |
3479 | 10 ## |
11 ## Octave is distributed in the hope that it will be useful, but | |
12 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 ## General Public License for more details. | |
15 ## | |
16 ## You should have received a copy of the GNU General Public License | |
7016 | 17 ## along with Octave; see the file COPYING. If not, see |
18 ## <http://www.gnu.org/licenses/>. | |
3479 | 19 |
8812
7d48766c21a5
use consistent format for doc strings of internal functions
John W. Eaton <jwe@octave.org>
parents:
8557
diff
changeset
|
20 ## -*- texinfo -*- |
7d48766c21a5
use consistent format for doc strings of internal functions
John W. Eaton <jwe@octave.org>
parents:
8557
diff
changeset
|
21 ## @deftypefn {Function File} {} __axis_label__ (@var{caller}, @var{txt}, @dots{}) |
6895 | 22 ## Undocumented internal function. |
8812
7d48766c21a5
use consistent format for doc strings of internal functions
John W. Eaton <jwe@octave.org>
parents:
8557
diff
changeset
|
23 ## @end deftypefn |
3479 | 24 |
25 ## Author: jwe | |
26 | |
6412 | 27 function retval = __axis_label__ (caller, txt, varargin) |
3479 | 28 |
6412 | 29 if (ischar (txt)) |
30 ca = gca (); | |
6737 | 31 |
8557
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
32 h = get (gca (), caller); |
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
33 |
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
34 set (h, "fontangle", get (ca, "fontangle"), |
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
35 "fontname", get (ca, "fontname"), |
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
36 "fontsize", get (ca, "fontsize"), |
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
37 "fontunits", get (ca, "fontunits"), |
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
38 "fontweight", get (ca, "fontweight"), |
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
39 "string", txt, |
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
40 varargin{:}); |
ab82e19002c4
better compatibility for axis label properties
John W. Eaton <jwe@octave.org>
parents:
8556
diff
changeset
|
41 |
6412 | 42 if (nargout > 0) |
43 retval = h; | |
3479 | 44 endif |
45 else | |
7654
48edf48cd4dc
__axis_label__: use name of caller in error message
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
46 error ("%s: expecting first argument to be character string", caller); |
4529 | 47 endif |
48 | |
3479 | 49 endfunction |