Skip to content

Commit 1d42355

Browse files
authored
More consistency with how -B0 is used (#4293)
* Let -B0 only imply x-y map, not z-axis * Update gmt_init.c Let 2D vs 3D decide what -B0 means and the type of title. * Update filler.sh * Update QR.ps
1 parent 7ecee45 commit 1d42355

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/gmt_init.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4263,7 +4263,8 @@ GMT_LOCAL int gmtinit_parse5_B_option (struct GMT_CTRL *GMT, char *in) {
42634263
if (no == GMT_Z) GMT->current.map.frame.drawz = true;
42644264
if (!text[0]) continue; /* Skip any empty format string */
42654265
if (text[0] == '0' && !text[1]) { /* Understand format '0' to mean "no annotation, ticks, or gridlines" */
4266-
GMT->current.map.frame.draw = GMT->current.map.frame.drawz = true; /* But we do wish to draw the frame */
4266+
GMT->current.map.frame.draw = true; /* But we do wish to draw the frame */
4267+
if (GMT->common.J.zactive) GMT->current.map.frame.drawz = true; /* Also brings z-axis into contention */
42674268
GMT->current.setting.map_frame_type = GMT_IS_PLAIN; /* Since checkerboard without intervals look stupid */
42684269
continue;
42694270
}

test/psxyz/QR.ps

-127 Bytes
Binary file not shown.

test/psxyz/filler.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ cat << EOF > t.txt
88
4 4 0
99
EOF
1010

11-
gmt psxyz -R0/5/0/5/0/1 -JX3i -JZ1i -P -K -p170/35 -Bwesn t.txt -Gred -W2p -L+yb > $ps
12-
gmt psxyz -R -J -JZ -O -K -Bwesn -p t.txt -Gred -W2p -L+yt -X3.5i >> $ps
13-
gmt psxyz -R -J -JZ -O -K -Bwesn -p t.txt -Ggreen -W2p -L+xl -X-3.5i -Y3.2i >> $ps
14-
gmt psxyz -R -J -JZ -O -K -Bwesn -p t.txt -Ggreen -W2p -L+xr -X3.5i >> $ps
15-
gmt psxyz -R -J -JZ -O -K -Bwesn -p t.txt -Gorange -W2p -L+y4 -X-3.5i -Y3.2i >> $ps
16-
gmt psxyz -R -J -JZ -O -K -Bwesn -p t.txt -Gorange -W0.5p,white -L+x4.5+p2p -X3.5i >> $ps
17-
gmt psxy -R0/5/0/5 -J -O -T >> $ps
11+
gmt psxyz -R0/5/0/5/0/1 -JX3i -P -K -p170/35 -B0 t.txt -Gred -W2p -L+yb > $ps
12+
gmt psxyz -R -J -O -K -B0 -p t.txt -Gred -W2p -L+yt -X3.5i >> $ps
13+
gmt psxyz -R -J -O -K -B0 -p t.txt -Ggreen -W2p -L+xl -X-3.5i -Y3.2i >> $ps
14+
gmt psxyz -R -J -O -K -B0 -p t.txt -Ggreen -W2p -L+xr -X3.5i >> $ps
15+
gmt psxyz -R -J -O -K -B0 -p t.txt -Gorange -W2p -L+y4 -X-3.5i -Y3.2i >> $ps
16+
gmt psxyz -R -J -O -B0 -p t.txt -Gorange -W0.5p,white -L+x4.5+p2p -X3.5i >> $ps

0 commit comments

Comments
 (0)