1 Jul 2005 17:17
Re: gnuplot xtic question
Jonathan Lynch <jlynch <at> frink.nuigalway.ie>
2005-07-01 15:17:27 GMT
2005-07-01 15:17:27 GMT
I have gone through the code for axis.c in the gnuplot sources. Below is
some pseudo code containing the pieces of code that I think are relevant
to what I am trying to do and also my understanding of what they do.
Again I am using a C program to calculate the position of xtics. Then
when i generate a "set xtics" command that will contain all the tic
values I want along with labels ( which is going to be minutes:seconds).
The maximum range of what I want to graph will be 1 hour, but
realistically it will be about 500 seconds.
I dont understand how the tic interval is calculated in the funtion
quantize_normal_tics. Could someone explain to me using pseduo code etc
how it works ?
Also the function quantize_duodecimal_tics rounds the tic interval. It
is called from the quantize_time_tics function when the format of the
axis is time. It seems to be similar to the quantize_normal_tics
function.
I would appreciate any responses
Jonathan
---------------------------------------------------------------------------
void setup_tics(axis, max)
{
//part that im interested in
//TIC_COMPUTED = default; gnuplot figures them
} else if (ticdef->type == TIC_COMPUTED) {
ticstep[axis] = tic = make_tics(axis, max);
(Continue reading)
RSS Feed