# HG changeset patch # User jwe # Date 1077207394 0 # Node ID ac4441e16ffaf56736061204902a5aefd810674a # Parent 82a558043db9a38e8cce5b3407da04896f74c42a [project @ 2004-02-19 16:16:34 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 --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 @@ -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), ...