legendPar unequal intervals

thank you very much @mostapha!

could you please explain a little bit more about the custom legend? how do I replace the input values with three numbers in order to have the colors fixed?

cheers!