# HG changeset patch # User jwe # Date 1077207394 0 # Node ID ac4441e16ffaf56736061204902a5aefd810674a # Parent 82a558043db9a38e8cce5b3407da04896f74c42a [project @ 2004-02-19 16:16:34 by jwe] diff -r 82a558043db9 -r ac4441e16ffa scripts/ChangeLog --- a/scripts/ChangeLog Wed Feb 18 22:31:57 2004 +0000 +++ b/scripts/ChangeLog Thu Feb 19 16:16:34 2004 +0000 @@ -1,3 +1,8 @@ +2004-02-18 John W. Eaton + + * control/base/__stepimp__.m: Only call clearplot if we will be + doing multiple plots in the same gnuplot frame. + 2004-02-16 John W. Eaton * control/system/__sysconcat__.m, control/system/__tfl__.m, diff -r 82a558043db9 -r ac4441e16ffa scripts/control/base/__stepimp__.m --- a/scripts/control/base/__stepimp__.m Wed Feb 18 22:31:57 2004 +0000 +++ b/scripts/control/base/__stepimp__.m Thu Feb 19 16:16:34 2004 +0000 @@ -223,7 +223,6 @@ gset nologscale gset autoscale gset nokey - clearplot(); if (IMPULSE) gm = zeros(NOUT, 1); tt = "impulse"; @@ -234,6 +233,9 @@ endif ncols = floor(sqrt(NOUT)); nrows = ceil(NOUT / ncols); + if (ncols > 1 || nrows > 1) + clearplot(); + endif for i = 1:NOUT subplot(nrows, ncols, i); title(sprintf("%s: | %s -> %s", tt,sysgetsignals(sys,"in",inp,1), ...