Hi all,
I would like to annotate a geological time scale cpt (https://bitbucket.org/chhei/gmt-cpts/src/master/GTS2012/GTS2012_stages.cpt) with oblique annotations from the CPT file (as the labels run into each other in the Cenozoic period).
Selecting no -B
option is my base case:
gmt colorbar -CGTS2012_stages.cpt -G0/80 -Dx15/1.0+jBC+w-30/0.4+h+m -V --FONT_ANNOT_PRIMARY=6p --MAP_FRAME_PEN=0.5p,black
Using -B+a45
(or -Ba+a45
) to rotate the annotations (breaks taken from the CPT file) results in a regular spaced x-interval for the annotations (which is not what I want):
gmt colorbar -CGTS2012_stages.cpt -G0/80 -Dx15/1.0+jBC+w-30/0.4+h+m -V --FONT_ANNOT_PRIMARY=6p --MAP_FRAME_PEN=0.5p,black
Testing -S+n
or -S+c
in combination with -B+a45
also results in regular x-intervals for the annotation, like -B+a45
(n.b. the manual says that -S
is to be used if -B
is not called):
gmt colorbar -CGTS2012_stages.cpt -R0/30/0/10 -JX-30/1.4 -G0/80 -Dx15/1.0+jBC+w-30/0.4+h+m -V --FONT_ANNOT_PRIMARY=6p --MAP_FRAME_PEN=0.5p,black -S+n -B+a45 -png s+n_boption
Using the -S+c
option alone gives the expected result with custom labels from the CPT plotted:
gmt colorbar -CGTS2012_stages.cpt -R0/30/0/10 -JX-30/1.4 -G0/80 -Dx15/1.0+jBC+w-30/0.4+h+m -V --FONT_ANNOT_PRIMARY=6p --MAP_FRAME_PEN=0.5p,black -S+c -B+a45 -png s+c_boption
So the question is whether there’s a way to get colorbar
to use the breaks from the CPT file, yet plot the annotations (or even the custom labels from the CPT) at an angle? Using the -L
option for equal sized rectangles is of no use in the case of the geological timescale CPT.
Cheers,
Christian
ps - also found that the old -E
and -A
options from GMT 4 and 5 are happily parsed in GMT6 modern mode without complaints