I'll answer my own question.
I have used colormap(parula(4)); after ploting to have a discrete color map and I have set the color bar 'TicksLabels' property to the proper labels.

Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!