Dynamic y axis for graph plotter