Is there a simple replacement for the old GMT4 "psxy -m" option?

Hello,

I’m updating some old GMT code to GMT6. The old GMT4 version was simple: with the psxy -m option one could plot from a location file broken into segments separated by “>” characters, such as drawing lines between pairs of points, e.g.

lon1 lat1
lon2 lat2

lonA latA
lonB latB

etc.
I haven’t been able to find an equivalent in GMT5 or GMT6; one of my former students did a workaround but it ends up being 10 lines of shell script instead of one little GMT flag.
Is there a proper replacement for this old “-m” option, or has this been completely scrapped? I’ve been reading the “plot” documentation but didn’t find anything.

Thanks!

Hello Fiona.

This is from the changelog. I think that your code should work just without -m. If not, maybe you could share an small example of your code.

Programs that read data tables can now process multi-segment tables automatically. This means programs that did not have this capability (e.g., filter1d) can now all operate on the segments separately; consequently, there is no longer a -m option.

Yes, this did indeed work; thank you! And now I’m more aware of the changelog, I’ll use it in future to track these kinds of legacy issues.