# HG changeset patch # User Ben Abbott # Date 1291856131 18000 # Node ID 56c8a00a269f775ce6da5cfb9ac9f626de86da9e # Parent e773d57de57252789acfc562302e901059391966 fill.m: Allow multiple filled polygons. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,6 @@ 2010-12-08 Ben Abbott + * plot/fill.m: Fix bug that implies nextplot = "add". * image/imshow.m: Flip y-axis. 2010-12-08 John W. Eaton diff --git a/scripts/plot/fill.m b/scripts/plot/fill.m --- 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