Mercurial > hg > octave-lyh
diff scripts/plot/plotyy.m @ 7240:3a695b7adf8e
[project @ 2007-12-03 20:16:36 by dbateman]
author | dbateman |
---|---|
date | Mon, 03 Dec 2007 20:16:36 +0000 |
parents | 66081694ffb8 |
children | d65670971cbc |
line wrap: on
line diff
--- a/scripts/plot/plotyy.m +++ b/scripts/plot/plotyy.m @@ -95,7 +95,8 @@ h1 = feval (fun1, x1, y1); set (ax(1), "ycolor", getcolor (h1(1))); - set (ax(1), "position", get (ax(1), "outerposition")); + set (ax(1), "position", [0.11 0.13 0.78 0.73]); + set (ax(1), "activepositionproperty", "position"); set (ax(1), "xlim", xlim); cf = gcf (); @@ -107,8 +108,10 @@ h2 = feval (fun2, x2, y2); set (ax(2), "yaxislocation", "right"); set (ax(2), "ycolor", getcolor (h2(1))); - set (ax(2), "position", get (ax(1), "outerposition")); + set (ax(2), "position", get (ax(1), "position")); + set (ax(2), "activepositionproperty", "position"); set (ax(2), "xlim", xlim); + set (ax(2), "color", "none"); endfunction function color = getcolor (ax)