Mercurial > hg > octave-nkf
changeset 11306:262c365eb71c
fill.m: Allow multiple filled polygons.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 02 Dec 2010 18:48:07 -0500 |
parents | c9df571efe95 |
children | 6ab93f01df07 |
files | scripts/ChangeLog scripts/plot/fill.m |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,6 @@ 2010-12-02 Ben Abbott <bpabbott@mac.com> + * plot/fill.m: Allow multiple filled polygons. * plot/subplot.m: Add suppport for "align" and "replace" options. 2010-11-26 John W. Eaton <jwe@octave.org>
--- a/scripts/plot/fill.m +++ b/scripts/plot/fill.m @@ -36,6 +36,10 @@ unwind_protect axes (h); + nextplot = get (h, "nextplot"); + if (strncmp (nextplot, "replace", 7)) + set (h, "nextplot", "add"); + endif for i = 1 : length (iargs) if (i == length (iargs)) args = varargin (iargs(i):end); @@ -49,6 +53,9 @@ endif htmp (end + 1) = tmp; endfor + if (strncmp (nextplot, "replace", 7)) + set (h, "nextplot", nextplot); + endif unwind_protect_cleanup axes (oldh); end_unwind_protect