# HG changeset patch # User John W. Eaton # Date 1222289309 14400 # Node ID 7ef5b1b4e0298d15ff49963f4dde716e6ff5b485 # Parent 01fac748b680e825eb1416b0ac1d617ce56aa4ba fplot.m: call axis after plot diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 --git a/scripts/plot/fplot.m b/scripts/plot/fplot.m --- 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