Mercurial > hg > octave-nkf
diff scripts/plot/newplot.m @ 10770:84c35a483d1f
Support 'hold all' (Feature Request #30336)
author | David Bateman <dbateman@free.fr> |
---|---|
date | Wed, 07 Jul 2010 20:21:28 +0200 |
parents | 95c3e38098bf |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/plot/newplot.m +++ b/scripts/plot/newplot.m @@ -26,8 +26,6 @@ function newplot () if (nargin == 0) - __next_line_color__ (true); - __next_line_style__ (true); cf = gcf (); fnp = get (cf, "nextplot"); switch (fnp) @@ -43,6 +41,13 @@ endswitch ca = gca (); anp = get (ca, "nextplot"); + if (strcmp (get (ca, "__hold_all__"), "off")) + __next_line_color__ (true); + __next_line_style__ (true); + else + __next_line_color__ (false); + __next_line_style__ (false); + endif switch (anp) case "new" case "add"