changeset 7152:8903b5151c8b

[project @ 2007-11-09 21:07:23 by jwe]
author jwe
date Fri, 09 Nov 2007 21:07:24 +0000
parents aeeb646f6538
children 4246642e9f48
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Nov 09 19:35:52 2007 +0000
+++ b/scripts/ChangeLog	Fri Nov 09 21:07:24 2007 +0000
@@ -1,5 +1,7 @@
 2007-11-09  John W. Eaton  <jwe@octave.org>
 
+	* plot/__go_draw_axes__.m: Correct test for have_data.
+
 	* audio/wavread.m, control/base/__bodquist__.m,
 	control/base/dare.m, control/base/dlqr.m, control/hinf/h2norm.m,
 	control/system/c2d.m, control/system/is_detectable.m,
--- a/scripts/plot/__go_draw_axes__.m	Fri Nov 09 19:35:52 2007 +0000
+++ b/scripts/plot/__go_draw_axes__.m	Fri Nov 09 21:07:24 2007 +0000
@@ -841,7 +841,7 @@
       fputs (plot_stream, "unset hidden3d;\n");
     endif
 
-    have_data = (! (isempty (data) && any (cellfun (@isempty, data))));
+    have_data = (! (isempty (data) || any (cellfun (@isempty, data))));
 
     if (xautoscale && have_data)
       xlim = get_axis_limits (xmin, xmax, xminp, xlogscale);
@@ -983,7 +983,6 @@
     endif
 
     if (have_data)
-
       if (nd == 2)
 	plot_cmd = "plot";
       else