4
|
1 function loglog (x1, x2) |
|
2 |
|
3 # usage: loglog (x, y) |
|
4 # |
|
5 # Make a 2D plot of y versus x using log scales for both axes. |
|
6 # |
|
7 # See the help message for the plot command for a description of how |
|
8 # the arguments are interpreted. |
|
9 # |
|
10 # See also: plot, semilogx, semilogy, polar, mesh, contour, bar, stairs, |
|
11 # gplot, gsplot, replot, xlabel, ylabel, title |
|
12 |
|
13 |
|
14 set logscale x; |
|
15 set logscale y; |
|
16 set nopolar; |
|
17 |
|
18 if (nargin == 1) |
|
19 plot_int (x1); |
|
20 elseif (nargin == 2) |
|
21 plot_int (x1, x2); |
|
22 else |
|
23 usage = sprintf ("usage: loglog (x)\n"); |
|
24 usage = sprintf ("%s loglog (x, y)", usage); |
|
25 error (usage); |
|
26 endif |
|
27 |
|
28 endfunction |