Closed Esteban82 closed 3 years ago
The same applies to grd2cpt
gmt grd2cpt @earth_relief_01d -T0/3/1 --COLOR_BACKGROUND=red -Cgeo
-8182 30.8/48/84.8 0 30.8/48/84.8 L
0 68.2/140.6/200.8 1 68.2/140.6/200.8 L
1 0/97/71 2 0/97/71 L
2 102.36/63.945/44.618 3 102.36/63.945/44.618 L
3 245.33/244.33/243.33 5651.5 245.33/244.33/243.33 B
B black
F white
N gray
Seems the default (turbo.cp) has no BNF settings while geo does. So internally, the red is used to updated the internal variable, but then it is overridden when geo is red. I think the intention is that the system COLOR_* are used when the CPT has no settings, but here they do. Perhaps this may require an option of modifier to work as you intend.
In my case I make an animation like 03 but only painting the above part.
I try using this command for the CPT but I get black for background color.
gmt makecpt -Cdem4 -T0/700 -H > a.cpt
In order to get cpt that I want, I had to manually modified the cpt. How should I do that?
Looking at this again. Try -M, I think that is what you want, no?
Thanks. It worked. Sorry for the false bug.
No worries. I had forgotten about -M.
When I rum makecpt with -C, I can't set the bakground color.