Mercurial > octave-nkf
changeset 11658:db22340e1f24 release-3-0-x
__stepimp__: don't call subplot for single plot
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 Feb 2008 04:02:37 -0500 |
parents | 6c413446e087 |
children | 803bb6fdbad5 |
files | scripts/ChangeLog scripts/control/base/__stepimp__.m scripts/plot/__go_draw_axes__.m |
diffstat | 3 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <jwe@octave.org> + + * control/base/__stepimp__.m: Don't use subplot for just one plot. + 2008-02-21 John W. Eaton <jwe@octave.org> * image/imshow.m: Call axis ("image").
--- 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)';
--- 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", ">");