gradient map

Hi,

is there a similar feature to the photoshop gradient map? I want to recolour the image using a 1D colour gradient applied to the luminance.
I’ve been trying to use the post-fx recolour node, but I’m not sure that’s what I’m looking for.

Andrea