gfio: fix a bug in the y-axis label shortening algorithm