Mercurial > hg > octave-shane
changeset 11325:56c8a00a269f
fill.m: Allow multiple filled polygons.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 08 Dec 2010 19:55:31 -0500 |
parents | e773d57de572 |
children | f46aeb3ea6b7 |
files | scripts/ChangeLog scripts/plot/fill.m |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,6 @@ 2010-12-08 Ben Abbott <bpabbott@mac.com> + * plot/fill.m: Fix bug that implies nextplot = "add". * image/imshow.m: Flip y-axis. 2010-12-08 John W. Eaton <jwe@octave.org>
--- a/scripts/plot/fill.m +++ b/scripts/plot/fill.m @@ -37,10 +37,10 @@ axes (h); nextplot = get (h, "nextplot"); - if (strncmp (nextplot, "replace", 7)) - set (h, "nextplot", "add"); - endif for i = 1 : length (iargs) + if (i > 1 && strncmp (nextplot, "replace", 7)) + set (h, "nextplot", "add"); + endif if (i == length (iargs)) args = varargin (iargs(i):end); else