Mercurial > hg > octave-nkf
changeset 16086:f89760972bf4
plotmatrix.m: Fix bug when number of columns in 2 inputs differs (bug #38368)
* scripts/plot/plotmatrix.m (__plotmatrix__): Reverse loop bounds of inner
and outer for loops.
author | Julien Bect <julien.bect@supelec.fr> |
---|---|
date | Thu, 21 Feb 2013 16:19:58 +0100 |
parents | 979ebfdd240d |
children | 2b994ee38b1c |
files | scripts/plot/plotmatrix.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/plotmatrix.m +++ b/scripts/plot/plotmatrix.m @@ -164,9 +164,9 @@ border = [0.130, 0.110, 0.225, 0.185] .* [xsize, ysize, xsize, ysize]; border(3:4) = - border(3:4) - border(1:2); - for i = 1 : n - for j = 1 : m - pos = [xsize * (j - 1) + xoff, ysize * (n - i) + yoff, xsize, ysize]; + for i = 1 : m + for j = 1 : n + pos = [xsize * (i - 1) + xoff, ysize * (n - j) + yoff, xsize, ysize]; tmp = axes ("outerposition", pos, "position", pos + border, "parent", parent); if (i == j && have_hist)