Y-axis ticks update when needed & fix y-axis infinity bug