# HG changeset patch # User jwe # Date 1194642444 0 # Node ID 8903b5151c8b00e44b3961aa02ddb83af77e77a4 # Parent aeeb646f6538c0c3103371f93194b0b9c18026cb [project @ 2007-11-09 21:07:23 by jwe] diff -r aeeb646f6538 -r 8903b5151c8b scripts/ChangeLog --- 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 + * 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, diff -r aeeb646f6538 -r 8903b5151c8b scripts/plot/__go_draw_axes__.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