psscale inserts a random color when cropping with -G
|Target version:||Candidate for next bugfix release|
I wanted to use just the green portion of the dem1 CPT for a grdimage plot of topography.
What I did was scale my CPT to include some negative values not present in my dataset:
gmt makecpt -Cdem1 -Ic -T-2500/1250 > topo.cpt
After plotting my data, I insert a colorbar using psscale. However, I want the colorbar to only include the values that are actually present in my data, so I crop it using -G:
gmt psscale -R0/10/0/10 -JX4i/4i -DjCC+h -P -Ctopo.cpt -By+lm -Bxa250 -G0/NaN > figure.ps
For some reason, this inserts a blue color in my colorbar (see attached). This is very strange because there isn't any blue in dem1. It doesn't happen if I remove -G.
I'm using trunk (18674).