# HG changeset patch # User John W. Eaton # Date 1203670957 18000 # Node ID db22340e1f24cf483b58a37fbbdf50b9a625a278 # Parent 6c413446e087844149afb706af9593d815a2e90d __stepimp__: don't call subplot for single plot diff -r 6c413446e087 -r db22340e1f24 scripts/ChangeLog --- a/scripts/ChangeLog Thu Feb 21 04:34:43 2008 -0500 +++ b/scripts/ChangeLog Fri Feb 22 04:02:37 2008 -0500 @@ -1,3 +1,7 @@ +2008-02-22 John W. Eaton + + * control/base/__stepimp__.m: Don't use subplot for just one plot. + 2008-02-21 John W. Eaton * image/imshow.m: Call axis ("image"). diff -r 6c413446e087 -r db22340e1f24 scripts/control/base/__stepimp__.m --- a/scripts/control/base/__stepimp__.m Thu Feb 21 04:34:43 2008 -0500 +++ b/scripts/control/base/__stepimp__.m Fri Feb 22 04:02:37 2008 -0500 @@ -237,7 +237,9 @@ ncols = floor (sqrt (NOUT)); nrows = ceil (NOUT / ncols); for i = 1:NOUT - subplot (nrows, ncols, i); + if (nrows > 1 || ncols > 1) + subplot (nrows, ncols, i); + endif if (DIGITAL) [ts, ys] = stairs (t, y(i,:)); ts = ts(1:2*n-2)'; diff -r 6c413446e087 -r db22340e1f24 scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Thu Feb 21 04:34:43 2008 -0500 +++ b/scripts/plot/__go_draw_axes__.m Fri Feb 22 04:02:37 2008 -0500 @@ -1262,7 +1262,7 @@ endfunction function [style, typ, with] = do_linestyle_command (obj, idx, mono, - plot_stream, errbars) + plot_stream, errbars = "") persistent have_newer_gnuplot ... = compare_versions (__gnuplot_version__ (), "4.0", ">");