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