adding y axis limits to graphs