Mercurial > hg > octave-nkf
diff scripts/plot/semilogy.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/semilogy.m +++ b/scripts/plot/semilogy.m @@ -30,14 +30,13 @@ function semilogy (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 x;\n"); - __gnuplot_raw__ ("set logscale y;\n"); - __gnuplot_raw__ ("set nopolar;\n"); + ## [h, varargin] = __plt_get_axis_arg__ ("semilogy", varargin{:}); + h = gca (); - __plt__ ("semilogy", varargin{:}); + set (h, "yscale", "log"); + + __plt__ ("semilogy", h, varargin{:}); endfunction