Mercurial > hg > octave-nkf
diff scripts/plot/fill.m @ 11325:56c8a00a269f
fill.m: Allow multiple filled polygons.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 08 Dec 2010 19:55:31 -0500 |
parents | 262c365eb71c |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- 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