changeset 11863:ad3b944fde43 release-3-0-x

fplot.m: call axis after plot
author John W. Eaton <jwe@octave.org>
date Fri, 03 Oct 2008 14:36:56 +0200
parents 9026c7cc22ef
children 9780ca97156e
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  Jaroslav Hajek  <highegg@gmail.com>
 
 	Version 3.0.3 released.
--- 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