Description of the problem
There is a difference between some of the option flags in gmt begin and gmt psconvert.
Full script that generated the error
#!/bin/bash
gmt begin test ps,png E720 -C
gmt basemap -R-2/2/-2/2 -JX5i/5i -BNSEW -Bpxa1 -Bpya1 -Xc -Y3.25i
gmt end show
gmt psconvert test.ps -A -I+m0.1i -Tg -E720
rm -f gmt.conf gmt.history
The above will generate a png that has a page border of 0.1i, while putting the psconvert flags in the options in begin will result in a full size page png.
#!/bin/bash
gmt begin test ps,png A,E720,-I+m0.1i -C
gmt basemap -R-2/2/-2/2 -JX5i/5i -BNSEW -Bpxa1 -Bpya1 -Xc -Y3.25i
gmt end show
rm -f gmt.conf gmt.history
Expected outcome
I would have expected gmt begin test ps,png A,E720,-I+m0.1i -C to produce a png that has a proper bounding box size in accordance with the -A and -I flags, but it only works when psconvert is called later. In either case, the bounding box resize only applies to the png and not the ps.
System information
- Operating system: Linux Ubuntu 22.04
- GMT version: 6.6.0
Description of the problem
There is a difference between some of the option flags in
gmt beginandgmt psconvert.Full script that generated the error
The above will generate a png that has a page border of 0.1i, while putting the
psconvertflags in the options in begin will result in a full size page png.Expected outcome
I would have expected
gmt begin test ps,png A,E720,-I+m0.1i -Cto produce a png that has a proper bounding box size in accordance with the-Aand-Iflags, but it only works whenpsconvertis called later. In either case, the bounding box resize only applies to the png and not the ps.System information