graph with responding y-axis ticks