Modern mode subplot functionality

In a classic mode bash script I could write

gmt psxy $insetRegion $insetProj $xymisc << EOF >> $psFile
34.059 -106.956
EOF

If for example I wanted to plot a star on an inset map

In modern mode I’m using the new subplot module and I now I don’t need to keep figures open, redirect std out, append, etc.

How would I achieve the above in a modern mode subplot routine?

Probably

gmt plot $xymisc << EOF
34.059 -106.956
EOF

or

echo 34.059 -106.956 | gmt plot $xymisc

unless it is the very first command and you need to add your region and projection variables.

Ahh…yes. thank you Paul