User interface for calculating nonlinear gradients