Mercurial > octave-nkf
diff scripts/plot/fplot.m @ 8145:7ef5b1b4e029
fplot.m: call axis after plot
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 24 Sep 2008 16:48:29 -0400 |
parents | 96f86c256ca0 |
children | cadc73247d65 a08f22ff5ba1 |
line wrap: on
line diff
--- a/scripts/plot/fplot.m Wed Sep 24 15:40:27 2008 -0400 +++ b/scripts/plot/fplot.m Wed Sep 24 16:48:29 2008 -0400 @@ -98,15 +98,16 @@ y = feval (fn, x); endif - if (length (limits) > 2) - axis (limits); - endif - if (have_linespec) plot (x, y, linespec); else plot (x, y); endif + + if (length (limits) > 2) + axis (limits); + endif + if (isvector(y)) legend (nam); else