When I run gmt grdimage, sometimes, the plot looks ok (image is centered). At other times, the plot covers a small portion of the page usually the bottom-center.
I was wondering if there might be something in my code that’s causing this?
Is there way to specify the position (and size) of the plot on the page?
Sure there is, the -X & -Y plus the figure size allow all sorts of control. But that is classic mode. In modern one do not need it. Also, you don’t need the -B in gmt coast -B ... but it shouldn’t do any harm either. GS v9.26 has troubles in transparency. Better to update to latest version.
Try adding -Vd to the gmt end show line (I think it’s allowed) and post the output of it.
Thanks a million. I noticed that moving the script and data to a different directory produces a “good” image. I think I’ll keep moving it around for the time being.