OK, here’s how it works. The colorbar is a separate command that allows all parameter setting. But for convenience it can be embedded in imaging command (ternary in this case). That can be done by setting it to true, which uses default settings but accepts also being parametrized. i.e., we can use it like
ternary("@ternary.txt", labels=("Clay","Silt","Sand"), image=true, marker=:p, colorbar=frame=(xlabel="Label long", ylabel=:units), show=true)
or
make the plot with the two commands separately:
ternary("@ternary.txt", labels=("Clay","Silt","Sand"), image=true, marker=:p, figsize=10)
colorbar!(pos=(paper=true, anchor=(11,0), size=(8,0.5), justify=:BL, vertical=true),
frame=(annot=:auto, ticks=:auto, xlabel="Label long", ylabel=:units), show=true)
Note that in the second case we must make the anchor and size play along with the figsize.
Regarding the second question, sorry but I didn’t get it. Basically we can control everything in GMT plots. Are you referring to the color scale?