# HG changeset patch # User Ben Abbott # Date 1293748379 18000 # Node ID c503ccbe5033f31a29cb26ef05afade5ce86057c # Parent 395945a58c24ef3b8682c846a05ac3d2404310cb Place contour for meshc/surfc at zlim(1) diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,7 @@ 2010-12-30 Ben Abbott + * 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 for gnuplot to favor eps/ps output. diff --git a/scripts/plot/meshc.m b/scripts/plot/meshc.m --- a/scripts/plot/meshc.m +++ b/scripts/plot/meshc.m @@ -42,8 +42,8 @@ set (ax, "view", [-37.5, 30]); endif - z = get (tmp, "zdata"); - zmin = 2 * (min(z(:)) - max(z(:))); + drawnow + zmin = get (ax, "zlim")(1); [c, tmp2] = __contour__ (ax, zmin, varargin{:}); diff --git a/scripts/plot/surfc.m b/scripts/plot/surfc.m --- a/scripts/plot/surfc.m +++ b/scripts/plot/surfc.m @@ -41,12 +41,8 @@ set (ax, "view", [-37.5, 30]); endif - if (nargin == 1) - z = varargin{1}; - else - z = varargin{3}; - endif - zmin = 2 * (min(z(:)) - max(z(:))); + drawnow + zmin = get (ax, "zlim")(1); [c, tmp2] = __contour__ (ax, zmin, varargin{:});