changeset 6795:acf80f494427

[project @ 2007-07-25 15:20:53 by jwe]
author jwe
date Wed, 25 Jul 2007 15:20:54 +0000
parents 5e4ae36ffdb2
children 59c0c3637633
files scripts/ChangeLog scripts/plot/__plt2__.m
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Jul 24 22:53:53 2007 +0000
+++ b/scripts/ChangeLog	Wed Jul 25 15:20:54 2007 +0000
@@ -1,3 +1,7 @@
+2007-07-25  John W. Eaton  <jwe@octave.org>
+
+	* plot/__plt2__.m: Return [](0x1) if both X and Y are empty.
+
 2007-07-24  David Bateman  <dbateman@free.fr>
 
 	* image/flag.m: New colormap function.
--- a/scripts/plot/__plt2__.m	Tue Jul 24 22:53:53 2007 +0000
+++ b/scripts/plot/__plt2__.m	Wed Jul 25 15:20:54 2007 +0000
@@ -73,8 +73,7 @@
       error ("__plt2__: invalid data for plotting");
     endif
   elseif (isempty (x1) && isempty (x2))
-    ## FIXME -- should we do nothing, or should we create a line object
-    ## with empty xdata and ydata properties?
+    retval = zeros (0, 1);
   else
     error ("__plt2__: invalid data for plotting");
   endif