added fix for density less than 1 to axisPanel