I’ve made a discrete no_green cpt that appears correctly on my map but incorrectly in the associated scale bar where it is continuous and I cannot figure out how to fix this? Here is some code:
A couple strange things I’ve also noticed, first is that I cannot get the tick marks to work, it annotates fine, but does not show the ticks. Second is that when I forced the cpt to be continuous with the -Z option, the scale was still continuous except for the boundary between the warm and cold colors (like is shown in the examples of this color scale). I also tried the -W option but that did not work.
If this is a screenshot of a PS or PDF in Preview on a mac then it is just Apple deciding to smooth coarse images. Convert to PNG with psconvert and it should be discrete there.
Okay I spoke too soon, now that I’ve tried to bring the PDF into the vector graphics program I use to edit my figures called Graphic (it’s a mac program), the problem is back. The color scale appears correctly in the PDF but when I open it in Graphic is goes back to the continuous version. I can’t seem to try other vector versions using psconvert, when I tried to make an .svg version it said my Ghostscript version (9.54.0) no longer supports svgs.
We have no control on what usgs.cpt contains. However, my first guess is taht you might be on a mac and viewing the PS using Preview. If that is true then this is a known Preview case. If that is not the case then you need to post the usgs.cpt file since we would need to recreate it. Also, see earlier posts on this topic.