Stick to y-coordinates when calculating vertical gradients