diff scripts/plot/__plt__.m @ 6405:b298a4c12fc3

[project @ 2007-03-14 16:51:28 by jwe]
author jwe
date Wed, 14 Mar 2007 16:51:30 +0000
parents a5cd8b77e892
children 5dc550e1f419
line wrap: on
line diff
--- a/scripts/plot/__plt__.m
+++ b/scripts/plot/__plt__.m
@@ -36,6 +36,8 @@
 
     ## Gather arguments, decode format, gather plot strings, and plot lines.
 
+    retval = [];
+
     while (nargs > 0 || x_set)
 
       if (nargs == 0)
@@ -51,9 +53,11 @@
 	if (x_set)
 	  options = __pltopt__ (caller, next_arg);
 	  if (y_set)
-	    retval = __plt2__ (h, x, y, options);
+	    tmp = __plt2__ (h, x, y, options);
+	    retval = [retval; tmp];
 	  else
-	    retval = __plt1__ (h, x, options);
+	    tmp = __plt1__ (h, x, options);
+	    retval = [retval; tmp];
 	  endif
 	  x_set = false;
 	  y_set = false;
@@ -63,7 +67,8 @@
       elseif (x_set)
 	if (y_set)
 	  options = __pltopt__ (caller, {""});
-	  retval = __plt2__ (h, x, y, options);
+	  tmp = __plt2__ (h, x, y, options);
+	  retval = [retval; tmp];
 	  x = next_arg;
 	  y_set = false;
 	else