Mercurial > hg > octave-terminal
changeset 15499: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 | c49d891eb263 |
children | dcd6fa8d3da2 |
files | scripts/plot/subplot.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/subplot.m +++ b/scripts/plot/subplot.m @@ -206,7 +206,7 @@ else objpos = get (child, "outerposition"); endif - if (all (objpos == pos) && ! replace_axes) + if (all (abs (objpos - pos) < eps) && ! replace_axes) ## If the new axes are in exactly the same position as an ## existing axes object, use the existing axes. found = true;