# HG changeset patch # User John W. Eaton # Date 1203671136 18000 # Node ID 05eb3486f6507ef91ddc8bd0dd0722f6897208e9 # Parent 59bee17bc1923b7ff7b08c70b66da0ee85949ab0 __stepimp__: don't call subplot for single plot diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 --git a/scripts/control/base/__stepimp__.m b/scripts/control/base/__stepimp__.m --- 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)'; diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- 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", ">");