After
summarize whatever, meanonly
local ymin = floor(r(min))
local ymax = ceil(r(max))
give integer results you can invoke in graph calls. The small detail here that you round down the minimum, if you do any rounding, and round up the maximum, ditto, given floor()
and ceil()
functions, could add a smidgen of space that suits graphical purposes.