Mercurial > hg > octave-lyh
diff scripts/plot/pcolor.m @ 7146:c7e5e638a8d0
[project @ 2007-11-09 17:49:44 by jwe]
author | jwe |
---|---|
date | Fri, 09 Nov 2007 17:51:42 +0000 |
parents | 0e63f1126f01 |
children | c18512d0ddb6 |
line wrap: on
line diff
--- a/scripts/plot/pcolor.m +++ b/scripts/plot/pcolor.m @@ -45,13 +45,15 @@ print_usage (); endif - tmp = surface (X, Y, Z, c); + tmp = surface (x, y, z, c); ax = get (tmp, "parent"); set (tmp, "facecolor", "flat"); - - set (ax, "view", [0, 90]); + + if (! ishold ()) + set (ax, "view", [0, 90]); + endif if (nargout > 0) h = tmp;