Mercurial > hg > octave-lojdl
changeset 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 | 01fac748b680 |
children | a9ec011ead94 |
files | scripts/ChangeLog scripts/plot/fplot.m |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-09-24 John W. Eaton <jwe@octave.org> + + * plot/fplot.m: Call axis after calling plot. + 2008-09-24 Soren Hauberg <hauberg@gmail.com> * image/imfinfo.m: New function.
--- a/scripts/plot/fplot.m +++ b/scripts/plot/fplot.m @@ -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