Custom axes - gridline will now draw

I’m trying to make custom axes (https://docs.generic-mapping-tools.org/latest/cookbook/options.html#custom-axes) with this simple script.

I would expect tick, and gridline (fg) to be drawn, but only the tick is plotted:

cat <<eof > custom-x
3.14 fg pi
5.5 fg more than five
eof

ps=custom-axis.ps

gmt psbasemap -R0/10/0/10 -BWeSn -JX10c -P -Bxafg -Byafg -K > $ps
gmt psbasemap -Bxccustom-x -BwEsN -O -R -J --MAP_GRID_PEN_PRIMARY=thickest,black,. >> $ps

gmt psconvert -Tf -A -Z $ps

If I change one of the fg to afg, then the gridline is correctly plotted:

cat <<eof > custom-x
3.14 fg pi
5.5 afg more than five
eof

ps=custom-axis.ps

gmt psbasemap -R0/10/0/10 -BWeSn -JX10c -P -Bxafg -Byafg -K > $ps
gmt psbasemap -Bxccustom-x -BwEsN -O -R -J --MAP_GRID_PEN_PRIMARY=thickest,black,. >> $ps

gmt psconvert -Tf -A -Z $ps


Shouldn’t the gridline be plotted in any of these cases?

Thanks for this, fixed in master.

1 Like

Super. Thanks Paul.