# HG changeset patch # User Rik # Date 1379629271 25200 # Node ID 9e1ef7d2d21c39302797d33704dfacb8696505f8 # Parent 93d2239b7fe9b85ca6944b03f5394ceefc765d4a contour3.m: Turn off axis box for compatibility with Matlab. * scripts/plot/contour3.m: Turn off axis "box" property. Use cool colormap in %!demo code to see things more clearly. diff -r 93d2239b7fe9 -r 9e1ef7d2d21c scripts/plot/contour3.m --- a/scripts/plot/contour3.m Thu Sep 19 14:40:45 2013 -0700 +++ b/scripts/plot/contour3.m Thu Sep 19 15:21:11 2013 -0700 @@ -52,9 +52,9 @@ ## @example ## @group ## contour3 (peaks (19)); +## colormap cool; ## hold on; -## surface (peaks (19), "facecolor", "none", "EdgeColor", "black"); -## colormap hot; +## surf (peaks (19), "facecolor", "none", "edgecolor", "black"); ## @end group ## @end example ## @@ -80,7 +80,7 @@ end_unwind_protect if (! ishold ()) - set (hax, "view", [-37.5, 30], + set (hax, "view", [-37.5, 30], "box", "off", "xgrid", "on", "ygrid", "on", "zgrid", "on"); endif @@ -94,14 +94,13 @@ %!demo %! clf; -%! contour3 (peaks (19)); +%! colormap (cool (64)); +%! surf (peaks (19), 'facecolor', 'none', 'edgecolor', [0.85 0.85 0.85]); %! hold on; -%! surf (peaks (19), 'facecolor', 'none', 'edgecolor', [0.8 0.8 0.8]); -%! colormap (hot (64)); +%! contour3 (peaks (19)); +%! hold off; %! axis tight; %! zlim auto; -%! box off; %! view (315, 17); -%! title ('contour3 of peaks() function'); -%! hold off; +%! title ({'contour3 of peaks() function', 'gray surf() shows peaks function'});