4
|
1 function semilogy (x1, x2) |
|
2 |
|
3 # usage: semilogy (x, y) |
|
4 # |
|
5 # Make a 2D plot of y versus x using a log scale for the y axis. |
|
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, loglog, polar, mesh, contour, bar, stairs, |
|
11 # gplot, gsplot, replot, xlabel, ylabel, title |
|
12 |
|
13 set nologscale x; |
|
14 set logscale y; |
|
15 set nopolar; |
|
16 |
|
17 if (nargin == 1) |
|
18 plot_int (x1); |
|
19 elseif (nargin == 2) |
|
20 plot_int (x1, x2); |
|
21 else |
|
22 usage = sprintf ("usage: semilogy (x)\n"); |
|
23 usage = sprintf ("%s semilogy (x, y)", usage); |
|
24 error (usage); |
|
25 endif |
|
26 |
|
27 endfunction |