I need to make several figures and then splice them together at the end. I am trying to make a colorbar by itself to add to the final figure. Here is my attempt:
gmt begin fig png
gmt makecpt -D -Cjet -T-1.5/1.5 > t.cpt
gmt colorbar -Rd -Ct.cpt -DJBC+w6i/0.5c -Bx0.75 -By+l"nT/kA" -Y0.1c
gmt end
However, I get this error:
psconvert [ERROR]: Unable to decode BoundingBox file /home/user/.gmt/sessions/gmt_session.26811/psconvert_27348c.bb (maybe no non-white features were plotted?)
If I use the above commands with plotting maps, it works ok, but not by itself. Any ideas?