You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the documentation, gmt makecpt will write out the B, N, F colors in the CPT have them. You can add -M to instead use the GMT Defaults settings COLOR_BACKGROUND, COLOR_NAN and COLOR_FOREGROUND. But, looks like we have an issue here. Here is the tail of share/cpt/SCM/roma.cpt:
...
0.984314 7/53/154 0.992156 5/51/153
0.992156 5/51/153 1.000000 3/49/152
N 255/255/255
B 126/23/0
F 3/49/152
If I ask for roma when building a CPT, I get
gmt makecpt -Croma -T2150/3050 | tail -5
3042.9413 7/53/154 3046.4702 5/51/153 L
3046.4702 5/51/153 3050 3/49/152 B
B 126/23/0
F 3/49/152
N white
So that matches. Now, if you add -M we are supposed to get these defaults instead:
COLOR_BACKGROUND = black
COLOR_FOREGROUND = white
COLOR_NAN = 128
Try again:
gmt makecpt -Croma -T2150/3050 -M | tail -5
3042.9413 7/53/154 3046.4702 5/51/153 L
3046.4702 5/51/153 3050 3/49/152 B
B black
F white
N 128
OK, that is fine. How about this?
gmt makecpt -Croma -T2150/3050 -I --COLOR_BACKGROUND=black --COLOR_FOREGROUND=white --COLOR_NAN=128 -M | tail -5
3042.9413 128/29/2 3046.4702 127/26/1 L
3046.4702 127/26/1 3050 126/23/0 B
B white
F black
N 128
Opps, despite setting the same values as the defaults, suddenly B and F are flipped. Seems like we have a bug in the parsing of those two settings?
Can any confirm we have an issue here?
The text was updated successfully, but these errors were encountered:
gmt makecpt -Croma -T2150/3050 -I --COLOR_BACKGROUND=black --COLOR_FOREGROUND=white --COLOR_NAN=128 -M | tail -5
3042.9413 128/29/2 3046.4702 127/26/1 L
3046.4702 127/26/1 3050 126/23/0 B
B white
F black
N 128
Opps, despite setting the same values as the defaults, suddenly B and F are flipped. Seems like we have a bug in the parsing of those two settings?
Can any confirm we have an issue here?
Hm. From the makecpt documentation, I understand that this flipping of background (B) and foreground (F) colors is expected when -I is used.
Per the documentation, gmt makecpt will write out the B, N, F colors in the CPT have them. You can add -M to instead use the GMT Defaults settings COLOR_BACKGROUND, COLOR_NAN and COLOR_FOREGROUND. But, looks like we have an issue here. Here is the tail of share/cpt/SCM/roma.cpt:
If I ask for roma when building a CPT, I get
So that matches. Now, if you add -M we are supposed to get these defaults instead:
Try again:
OK, that is fine. How about this?
Opps, despite setting the same values as the defaults, suddenly B and F are flipped. Seems like we have a bug in the parsing of those two settings?
Can any confirm we have an issue here?
The text was updated successfully, but these errors were encountered: