Fix the bug of displaying ticks due to floating error. Fix the bug of reading min and max.
New test example.