1
## Copyright (C) 1998-2003 Joao Cardoso.
3
## This program is free software; you can redistribute it and/or modify it
4
## under the terms of the GNU General Public License as published by the
5
## Free Software Foundation; either version 2 of the License, or (at your
6
## option) any later version.
8
## This program is distributed in the hope that it will be useful, but
9
## WITHOUT ANY WARRANTY; without even the implied warranty of
10
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
## General Public License for more details.
13
## This file is part of plplot_octave.
15
## yticks ([y_interval [, num_minor])
17
## Set the xticks interval, and the number of minor ticks between major xticks.
19
## No arguments makes it automatic (default).
20
## Set y_interval = 0 for default ticks
21
## Set y_interval = -1 to disable ticks (and tick labels)
22
## Set y_interval = -2 to disable ticks labels,
23
## Set num_minor = 0 to disable minor ticks.
24
## Set num_minor = -1 for default minor ticks.
26
function yticks (int, num)
29
global pl_automatic_replot
39
__pl.yticks(strm,1) = 0;
40
__pl.yticks(strm,2) = 0;
41
__pl.yticks(strm,3) = 1;
42
__pl.yticks(strm,4) = 1;
46
__pl.yticks(strm,2) = num+1;
51
__pl.yticks(strm,3) = 0;
53
__pl.yticks(strm,4) = 0;
55
__pl.yticks(strm,1) = int;
59
if (exist("pl_automatic_replot"))
60
if (pl_automatic_replot)