Mercurial > hg > octave-lojdl
changeset 11426:c503ccbe5033
Place contour for meshc/surfc at zlim(1)
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 30 Dec 2010 17:32:59 -0500 |
parents | 395945a58c24 |
children | dc983f92e774 |
files | scripts/ChangeLog scripts/plot/meshc.m scripts/plot/surfc.m |
diffstat | 3 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,7 @@ 2010-12-30 Ben Abbott <bpabbott@mac.com> + * 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.
--- 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{:});
--- 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{:});