GenericMappingTools / gmt

The Generic Mapping Tools
https://www.generic-mapping-tools.org
Other
857 stars 359 forks source link

-B option in image module #5635

Open maxrjones opened 3 years ago

maxrjones commented 3 years ago

Description of the problem

The documentation lists -B as an optional argument in the image documentation. Is this correct? Some tests suggest that -B does not have any impact on the output from image. For example:

gmt image @needle.jpg -Dx0/0+w7c -JM12c -JZ14c -p200/30 -B+w1p+gred3+t"title" -pdf plot

PaulWessel commented 3 years ago

Certainly a problem somewhere. If I add -B0 to your command I to get a title on top of the image (i.e., in the wrong location):

gmt image @needle.jpg -Dx0/0+w7c -JM12c -JZ14c -p200/30 -B0 -B+w1p+gred3+t"title" -png

plot plot

Probably some confusion as to what -R is in this case. Also, not sure if -JM should even be allowed here - that is not a geotiff with a geographic region you are plotting - the jpg has nothing....