altitude arg for sample_gradients