How to make a CPT with irregular steps

Dear all,

I will like to make a color bar with irregular steps, because the data has a large range of values. I modified the cptfile to capture irregular values, but the final cpt scaling still recognizes the assigned step. I would prefer to have 20, 30, 40, 60, 80, 100, 120, 150, 200, 400, 600. How could this be modified. Thank you.
gmt grd2cpt $cutfile -L$cptmin/$cptmax -Crainbow > $cptfile
cpt scaling

If you want to change the size of the colors on the color bar, then chek psscale.

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

Many thanks for the suggestions. I read 16.2 Labeled and non-equidistant color legends and followed the guide. I perceive label issue is related to psscale. I will read it again. Thank you.

1 Like