comparison 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
comparison
equal deleted inserted replaced
6256:83949ae13b2c 6257:44c91c5dfe1d
28 28
29 ## Author: jwe 29 ## Author: jwe
30 30
31 function loglog (varargin) 31 function loglog (varargin)
32 32
33 ## FIXME -- these plot states should really just be set 33 newplot ();
34 ## temporarily, probably inside an unwind_protect block, but there is
35 ## no way to determine their current values.
36 34
37 __gnuplot_raw__ ("set logscale x;\n"); 35 ## [h, varargin] = __plt_get_axis_arg__ ("loglog", varargin{:});
38 __gnuplot_raw__ ("set logscale y;\n"); 36 h = gca ();
39 __gnuplot_raw__ ("set nopolar;\n");
40 37
41 __plt__ ("loglog", varargin{:}); 38 set (h, "xscale", "log", "yscale", "log");
39
40 __plt__ ("loglog", h, varargin{:});
42 41
43 endfunction 42 endfunction