# HG changeset patch # User Rik # Date 1392054119 28800 # Node ID 4bfd44c151456c4769e3156d83ec7fca0d4a88da # Parent 5c0b8f2da650d7c8d97aade8270ccc7fd7362dce 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. diff -r 5c0b8f2da650 -r 4bfd44c15145 scripts/image/image.m --- a/scripts/image/image.m Sun Feb 09 18:21:14 2014 -0500 +++ b/scripts/image/image.m Mon Feb 10 09:41:59 2014 -0800 @@ -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