diff scripts/plot/plot.m @ 6257:44c91c5dfe1d

[project @ 2007-01-30 19:16:52 by jwe]
author jwe
date Tue, 30 Jan 2007 19:16:55 +0000
parents 6ac0c826459e
children d60127449a29
line wrap: on
line diff
--- a/scripts/plot/plot.m
+++ b/scripts/plot/plot.m
@@ -173,13 +173,11 @@
 
 function plot (varargin)
 
-  ## FIXME -- these plot states should really just be set
-  ## temporarily, probably inside an unwind_protect block, but there is
-  ## no way to determine their current values.
+  newplot ();
 
-  __gnuplot_raw__ ("set nologscale;\n");
-  __gnuplot_raw__ ("set nopolar;\n");
+  ## [h, varargin] = __plt_get_axis_arg__ ("plot", varargin{:});
+  h = gca ();
 
-  __plt__ ("plot", varargin{:});
+  __plt__ ("plot", h, varargin{:});
 
 endfunction