Only display ticks on y-axis of graph when showing data

To prevent case where whole-number graphs were shwoing [0, 0.5, 1] as y axis values, which is incongruous with integer values.