diff scripts/plot/newplot.m @ 6314:7cbf27ad6c3f

[project @ 2007-02-16 00:43:40 by jwe]
author jwe
date Fri, 16 Feb 2007 00:43:40 +0000
parents cc2bee854d23
children df3445687c6e
line wrap: on
line diff
--- a/scripts/plot/newplot.m
+++ b/scripts/plot/newplot.m
@@ -27,9 +27,10 @@
     cf = gcf ();
     fnp = get (cf, "nextplot");
     switch (fnp)
+      ## FIXME -- probably we should do more than validate the nextplot
+      ## property value...
       case "new"
       case "add"
-	return;
       case "replacechildren"
       case "replace"
       otherwise
@@ -42,7 +43,7 @@
       case "replacechildren"
       case "replace"
 	__next_line_color__ (true);
-	__uiobject_axes_init__ (ca);
+	__uiobject_axes_init__ (ca, "replace");
       otherwise
 	error ("newplot: unrecognized nextplot property for current axes");
     endswitch