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

[project @ 2007-01-30 19:16:52 by jwe]
author jwe
date Tue, 30 Jan 2007 19:16:55 +0000
parents ace8d8d26933
children a5cd8b77e892
line wrap: on
line diff
--- a/scripts/plot/semilogx.m	Tue Jan 30 18:45:59 2007 +0000
+++ b/scripts/plot/semilogx.m	Tue Jan 30 19:16:55 2007 +0000
@@ -30,14 +30,13 @@
 
 function semilogx (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 logscale x;\n");
-  __gnuplot_raw__ ("set nologscale y;\n");
-  __gnuplot_raw__ ("set nopolar;\n");
+  ## [h, varargin] = __plt_get_axis_arg__ ("semilogx", varargin{:});
+  h = gca ();
 
-  __plt__ ("semilogx", varargin{:});
+  set (h, "xscale", "log");
+
+  __plt__ ("semilogx", h, varargin{:});
 
 endfunction