# HG changeset patch # User jwe # Date 1198258895 0 # Node ID 3ed85de5922cda754571fe15a67008238b4078d8 # Parent 55f35e469c43745ef7e00277097a3e089bc83bf3 [project @ 2007-12-21 17:40:20 by jwe] diff -r 55f35e469c43 -r 3ed85de5922c scripts/ChangeLog --- a/scripts/ChangeLog Thu Dec 20 17:53:36 2007 +0000 +++ b/scripts/ChangeLog Fri Dec 21 17:41:35 2007 +0000 @@ -1,3 +1,7 @@ +2007-12-21 Soren Hauberg + + * image/imshow.m: Accept empty value for display_range. + 2007-12-20 Michael Goffioul * pkg/pkg.m: Add .lib as architecture-dependent suffix. diff -r 55f35e469c43 -r 3ed85de5922c scripts/image/imshow.m --- a/scripts/image/imshow.m Thu Dec 20 17:53:36 2007 +0000 +++ b/scripts/image/imshow.m Fri Dec 21 17:41:35 2007 +0000 @@ -92,7 +92,7 @@ while (narg <= numel (varargin)) arg = varargin{narg++}; if (isnumeric (arg)) - if (numel (arg) == 2) + if (numel (arg) == 2 || isempty (arg)) display_range = arg; elseif (columns (arg) == 3) indexed = true; diff -r 55f35e469c43 -r 3ed85de5922c scripts/plot/contour.m --- a/scripts/plot/contour.m Thu Dec 20 17:53:36 2007 +0000 +++ b/scripts/plot/contour.m Fri Dec 21 17:41:35 2007 +0000 @@ -76,7 +76,7 @@ %! contour (x, y, z); %!demo -%! [th, r] = meshgrid (linspace (0, 2*pi, 64), 0:.05:0.9); -%! [X, Y] = pol2cart (th, r); -%! f = ((X + i*Y).^4 - 1).^(1/4); -%! contour(X, Y, abs(f), 16) +%! [theta, r] = meshgrid (linspace (0, 2*pi, 64), linspace(0,1,64)); +%! [X, Y] = pol2cart (theta, r); +%! Z = sin(2*theta).*(1-r); +%! contour(X, Y, abs(Z), 10) diff -r 55f35e469c43 -r 3ed85de5922c scripts/plot/contourf.m --- a/scripts/plot/contourf.m Thu Dec 20 17:53:36 2007 +0000 +++ b/scripts/plot/contourf.m Fri Dec 21 17:41:35 2007 +0000 @@ -260,7 +260,7 @@ %! contourf (x, y, z, -7:9) %!demo -%! [th, r] = meshgrid (linspace (0, 2*pi, 64), 0:.05:0.9); -%! [X, Y] = pol2cart (th, r); -%! f = ((X + i*Y).^4 - 1).^(1/4); -%! contourf(X, Y, abs(f), 16) +%! [theta, r] = meshgrid (linspace (0, 2*pi, 64), linspace(0,1,64)); +%! [X, Y] = pol2cart (theta, r); +%! Z = sin(2*theta).*(1-r); +%! contourf(X, Y, abs(Z), 10)