Mercurial > hg > octave-nkf
changeset 18511:4bfd44c15145 stable
image.m: Fix axis limit bug when column vectors are used as x,y input (bug #41466).
* image.m: Guarantee a row vector for axis limit calculations.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 10 Feb 2014 09:41:59 -0800 |
parents | 5c0b8f2da650 |
children | 8858d0ccfc93 |
files | scripts/image/image.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/image.m +++ b/scripts/image/image.m @@ -156,8 +156,8 @@ y = [1, rows(img)]; endif - xdata = x([1, end]); - ydata = y([1, end]); + xdata = x([1, end])(:).'; # (:).' is a hack to guarantee row vector + ydata = y([1, end])(:).'; if (numel (x) > 2 && numel (y) > 2) ## Test data for non-linear spacing which is unsupported