For a lack of a better way to describe it, I want to apply a modulo to an rrange expression in Gnuplot 5.0 in order to ensure that the max is "rounded" to the nearest 10 units. I think that I'm on the right track, but am curious whether there is a more elegant method to accomplish this. For example, this yields what I want:
max_range = int(STATS_max)
if (max_range == 0) {
max_range = 1
}
while (max_range % 10 != 0) {
max_range = (max_range + 1)
}
So, for example, a STATS_max value of 13.2 yields a max_range of 20.
Thanks in advance, Dave