Mercurial > hg > octave-nkf
comparison scripts/plot/plotmatrix.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | 22c50cbad2ce |
comparison
equal
deleted
inserted
replaced
11586:12df7854fa7c | 11587:c792872f8942 |
---|---|
28 ## | 28 ## |
29 ## @example | 29 ## @example |
30 ## plot (@var{x} (:, i), @var{y} (:, j) | 30 ## plot (@var{x} (:, i), @var{y} (:, j) |
31 ## @end example | 31 ## @end example |
32 ## | 32 ## |
33 ## Given a single argument @var{x}, then this is equivalent to | 33 ## Given a single argument @var{x}, then this is equivalent to |
34 ## | 34 ## |
35 ## @example | 35 ## @example |
36 ## plotmatrix (@var{x}, @var{x}) | 36 ## plotmatrix (@var{x}, @var{x}) |
37 ## @end example | 37 ## @end example |
38 ## | 38 ## |
39 ## @noindent | 39 ## @noindent |
40 ## except that the diagonal of the set of axes will be replaced with the | 40 ## except that the diagonal of the set of axes will be replaced with the |
41 ## histogram @code{hist (@var{x} (:, i))}. | 41 ## histogram @code{hist (@var{x} (:, i))}. |
42 ## | 42 ## |
43 ## The marker to use can be changed with the @var{style} argument, that is a | 43 ## The marker to use can be changed with the @var{style} argument, that is a |
44 ## string defining a marker in the same manner as the @code{plot} | 44 ## string defining a marker in the same manner as the @code{plot} |
45 ## command. If a leading axes handle @var{h} is passed to | 45 ## command. If a leading axes handle @var{h} is passed to |
46 ## @code{plotmatrix}, then this axis will be used for the plot. | 46 ## @code{plotmatrix}, then this axis will be used for the plot. |
47 ## | 47 ## |
48 ## The optional return value @var{h} provides handles to the individual | 48 ## The optional return value @var{h} provides handles to the individual |
49 ## graphics objects in the scatter plots, whereas @var{ax} returns the | 49 ## graphics objects in the scatter plots, whereas @var{ax} returns the |
50 ## handles to the scatter plot axis objects. @var{bigax} is a hidden | 50 ## handles to the scatter plot axis objects. @var{bigax} is a hidden |
51 ## axis object that surrounds the other axes, such that the commands | 51 ## axis object that surrounds the other axes, such that the commands |
52 ## @code{xlabel}, @code{title}, etc., will be associated with this hidden | 52 ## @code{xlabel}, @code{title}, etc., will be associated with this hidden |
53 ## axis. Finally @var{p} returns the graphics objects associated with | 53 ## axis. Finally @var{p} returns the graphics objects associated with |
54 ## the histogram and @var{pax} the corresponding axes objects. | 54 ## the histogram and @var{pax} the corresponding axes objects. |
55 ## | 55 ## |
56 ## @example | 56 ## @example |
82 bigax = bigax2; | 82 bigax = bigax2; |
83 p = p2; | 83 p = p2; |
84 pax = pax2; | 84 pax = pax2; |
85 endif | 85 endif |
86 axes (bigax2); | 86 axes (bigax2); |
87 ctext = text (0, 0, "", "visible", "off", | 87 ctext = text (0, 0, "", "visible", "off", |
88 "handlevisibility", "off", "xliminclude", "off", | 88 "handlevisibility", "off", "xliminclude", "off", |
89 "yliminclude", "off", "zliminclude", "off", | 89 "yliminclude", "off", "zliminclude", "off", |
90 "deletefcn", {@plotmatrixdelete, [ax2; pax2]}); | 90 "deletefcn", {@plotmatrixdelete, [ax2; pax2]}); |
91 set (bigax2, "visible", "off"); | 91 set (bigax2, "visible", "off"); |
92 unwind_protect_cleanup | 92 unwind_protect_cleanup |
93 axes (oldh); | 93 axes (oldh); |
120 for i = 1 : nargin - 1 | 120 for i = 1 : nargin - 1 |
121 arg = varargin{i}; | 121 arg = varargin{i}; |
122 if (ischar (arg) || iscell (arg)) | 122 if (ischar (arg) || iscell (arg)) |
123 [linespec, valid] = __pltopt__ ("plotmatrix", varargin{i}, false); | 123 [linespec, valid] = __pltopt__ ("plotmatrix", varargin{i}, false); |
124 if (valid) | 124 if (valid) |
125 have_line_spec = true; | 125 have_line_spec = true; |
126 linespec = varargin(i); | 126 linespec = varargin(i); |
127 varargin(i) = []; | 127 varargin(i) = []; |
128 nargin = nargin - 1; | 128 nargin = nargin - 1; |
129 break; | 129 break; |
130 else | 130 else |