comparison scripts/plot/subplot.m @ 15498:623cce4577b3 stable

Fix legend and subplot interaction (bug #37499) * subplot.m: Replace axis position exact match test with matching to within 1*eps to avoid round-off errors.
author Rik <rik@octave.org>
date Wed, 10 Oct 2012 11:31:41 -0700
parents 4d917a6a858b
children 3ae8c1ee7365
comparison
equal deleted inserted replaced
15497:c49d891eb263 15498:623cce4577b3
204 if (align_axes) 204 if (align_axes)
205 objpos = get (child, "position"); 205 objpos = get (child, "position");
206 else 206 else
207 objpos = get (child, "outerposition"); 207 objpos = get (child, "outerposition");
208 endif 208 endif
209 if (all (objpos == pos) && ! replace_axes) 209 if (all (abs (objpos - pos) < eps) && ! replace_axes)
210 ## If the new axes are in exactly the same position as an 210 ## If the new axes are in exactly the same position as an
211 ## existing axes object, use the existing axes. 211 ## existing axes object, use the existing axes.
212 found = true; 212 found = true;
213 tmp = child; 213 tmp = child;
214 else 214 else