# HG changeset patch # User John W. Eaton # Date 1222289309 14400 # Node ID 7ef5b1b4e0298d15ff49963f4dde716e6ff5b485 # Parent 01fac748b680e825eb1416b0ac1d617ce56aa4ba fplot.m: call axis after plot diff -r 01fac748b680 -r 7ef5b1b4e029 scripts/ChangeLog --- a/scripts/ChangeLog Wed Sep 24 15:40:27 2008 -0400 +++ b/scripts/ChangeLog Wed Sep 24 16:48:29 2008 -0400 @@ -1,3 +1,7 @@ +2008-09-24 John W. Eaton + + * plot/fplot.m: Call axis after calling plot. + 2008-09-24 Soren Hauberg * image/imfinfo.m: New function. diff -r 01fac748b680 -r 7ef5b1b4e029 scripts/plot/fplot.m --- 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