# HG changeset patch # User Martin Helm # Date 1280676634 14400 # Node ID 830e03dd844e4ede6ef9fcc3b5e085c4441c278d # Parent 1577accf2ed8ab304c98c54d40d5dae30a6f549c isosurface.m: swap rows and columns of matrix in call to meshgrid diff -r 1577accf2ed8 -r 830e03dd844e scripts/ChangeLog --- a/scripts/ChangeLog Sun Aug 01 07:20:28 2010 -0700 +++ b/scripts/ChangeLog Sun Aug 01 11:30:34 2010 -0400 @@ -1,3 +1,8 @@ +2010-08-01 Martin Helm + + * plot/isosurface.m: Swap rows and columns of matrix in call to + meshgrid. + 2010-08-01 Rik * plot/print.m: Update documentation string. Change to active voice. diff -r 1577accf2ed8 -r 830e03dd844e scripts/plot/isosurface.m --- a/scripts/plot/isosurface.m Sun Aug 01 07:20:28 2010 -0700 +++ b/scripts/plot/isosurface.m Sun Aug 01 11:30:34 2010 -0400 @@ -132,7 +132,7 @@ endif else val = varargin{1}; - [n1, n2, n3] = size (val); + [n2, n1, n3] = size (val); [x, y, z] = meshgrid (1:n1, 1:n2, 1:n3); iso = varargin{2}; if (nargin >= 3 && ismatrix (varargin{3})) @@ -214,4 +214,4 @@ %! clf %! [x,y,z] = meshgrid(-2:0.5:2, -2:0.5:2, -2:0.5:2); %! v = x.^2 + y.^2 + z.^2; -%! isosurface (x, y, z, v, 1) \ No newline at end of file +%! isosurface (x, y, z, v, 1)