I'm doing a large number of plots using gnuplot. As the data range (for both x and y axis) is variable for each plot, I need to let gnuplot auto set both range and tics. However, I need to place a defined grid under the plot, with horizontal lines each 1/8 unit and verical lines 1/4 unit. As I let gnuplot decide where to place tics, I don't know the distance (in units) between two tics and hence, I don't know the number of subdivisions that I should made in m{x|y}tics to have the desired output.
E.g.: If I have a ytic every two units, I need to "set mytics 8". If I have a ytic every unit, I need to "set mytics 4".
So, there is someway to obtain the distance between auto-placed tics? Or even the number of plotted tics?