Mercurial > hg > octave-terminal
changeset 7513:05eb3486f650
__stepimp__: don't call subplot for single plot
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 Feb 2008 04:05:36 -0500 |
parents | 59bee17bc192 |
children | 4f6a73fd8df9 |
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 +++ b/scripts/ChangeLog @@ -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 +++ b/scripts/control/base/__stepimp__.m @@ -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 +++ b/scripts/plot/__go_draw_axes__.m @@ -1273,7 +1273,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", ">");