How to make a CPT with irregular steps

Also you can read 16.2. Labeled and non-equidistant color legends from the docs.