comparison scripts/plot/plotyy.m @ 17068:140d50ed8f22

imported patch plotyy
author Rik <rik@octave.org>
date Wed, 24 Jul 2013 23:12:46 -0700
parents ddac88d32d6a
children eaab03308c0b
comparison
equal deleted inserted replaced
17067:b2cbf369837e 17068:140d50ed8f22
169 set (ax(2), "autopos_tag", "subplot"); 169 set (ax(2), "autopos_tag", "subplot");
170 else 170 else
171 set (ax, "activepositionproperty", "position"); 171 set (ax, "activepositionproperty", "position");
172 endif 172 endif
173 173
174 h2 = feval (fun2, x2, y2); 174 ## Kluge, until __plt_get_axis_arg__ and newplot are reworked.
175 set (ax(2), "nextplot", "replacechildren");
176 h2 = feval (fun2, ax(2), x2, y2);
175 set (ax(2), "yaxislocation", "right"); 177 set (ax(2), "yaxislocation", "right");
176 set (ax(2), "ycolor", getcolor (h2(1))); 178 set (ax(2), "ycolor", getcolor (h2(1)));
177 179
178 if (strcmp (get(ax(1), "activepositionproperty"), "position")) 180 if (strcmp (get(ax(1), "activepositionproperty"), "position"))
179 set (ax(2), "position", get (ax(1), "position")); 181 set (ax(2), "position", get (ax(1), "position"));