As the name says, I want to control the range and number of xtics . I use gnuplot to build data files in which the horizontal axes are usually time (t) taking values ββin the interval [0, t_max]. Ok, now let's say the following scenario:
The maximum time value is 4086, and this specific value is not known in advance. However, it can be found using
stats "data.out" u 1 set xrange [0:STATS_max]
My question is, how can I round the maximum value of t to the nearest hundred (in this case 4100)? Also, is there a way to tell gnuplot to print only 5 ticks on the horizontal axes regardless of its range (rounding the maximum value to the nearest hundred, or a decade that will always be divided by 5)?
Thank you very much in advance!
source share