Version: GMT 6.6.0
OS: Ubuntu Linux
Hello everyone,
I am trying to create a discrete horizontal colourbar where the numerical annotations sit centrally beneath each colour bin rather than at the bin edges.
Currently, if I use a simple -Bxa0.1 flag, I get a clean annotation interval, but the numbers sit firmly at the bin edges:
Above: good tick interval distribution, but sat at bin edges.
My CPT has 10 discrete intervals from 0 to 1.0 (step of 0.1). When I swtich to using the -Li flag to try and shift things into the intervals, it prints the full ranges and crowds the text layout:
gmt colorbar -C/tmp/fc.cpt \
-Dx4.5c/-1.3c+w9c/0.4c+h+jTL \
-Li \
-S+x"Frost cracking day fraction" \
--FONT_ANNOT_PRIMARY=9p,Helvetica,black

Above: the resulting distribution from the aforementioned code snippet.
What is the correct syntax to display these single centred annotations, instead of these range blocks?
Any help would be greatly appreciated, thanks!


