# HG changeset patch # User Ben Abbott # Date 1293758295 18000 # Node ID dc983f92e774087f82ed08978a6300591a8e855f # Parent c503ccbe5033f31a29cb26ef05afade5ce86057c contour3.m: Grid on be default for 3D plots. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,7 @@ 2010-12-30 Ben Abbott + * plot/contour3.m, plot/mesh.m, plot/meshc.m, plot/surfc.m: Grid on + by default for 3D plots. * plot/surfc.m, plot/meshc.m: Place contour for meshc/surfc at zlim(1). * plot/__go_draw_axes__.m: Tweak vertical alignment of text objects diff --git a/scripts/plot/contour3.m b/scripts/plot/contour3.m --- a/scripts/plot/contour3.m +++ b/scripts/plot/contour3.m @@ -63,7 +63,8 @@ end_unwind_protect if (! ishold ()) - set (xh, "view", [-37.5, 30]); + set (xh, "view", [-37.5, 30], + "xgrid", "on", "ygrid", "on", "zgrid", "on"); endif if (nargout > 0) diff --git a/scripts/plot/mesh.m b/scripts/plot/mesh.m --- a/scripts/plot/mesh.m +++ b/scripts/plot/mesh.m @@ -50,7 +50,8 @@ set (tmp, "edgecolor", "flat"); if (! ishold ()) - set (ax, "view", [-37.5, 30]); + set (ax, "view", [-37.5, 30], + "xgrid", "on", "ygrid", "on", "zgrid", "on"); endif if (nargout > 0) diff --git a/scripts/plot/meshc.m b/scripts/plot/meshc.m --- a/scripts/plot/meshc.m +++ b/scripts/plot/meshc.m @@ -39,7 +39,8 @@ set (tmp, "edgecolor", "flat"); if (! ishold ()) - set (ax, "view", [-37.5, 30]); + set (ax, "view", [-37.5, 30], + "xgrid", "on", "ygrid", "on", "zgrid", "on"); endif drawnow diff --git a/scripts/plot/surfc.m b/scripts/plot/surfc.m --- a/scripts/plot/surfc.m +++ b/scripts/plot/surfc.m @@ -38,7 +38,8 @@ set (tmp, "facecolor", "flat"); if (! ishold ()) - set (ax, "view", [-37.5, 30]); + set (ax, "view", [-37.5, 30], + "xgrid", "on", "ygrid", "on", "zgrid", "on"); endif drawnow