I wrote a script for GMT 6.0.0 basically:
gmt psbasemap -Jxparams -Rlimits -K > outfile
gmt psxy (simple dataset of x-y pairs) -Jx -R -O -K >> outfile
gmt regress -Fxm (on my simple dataset) | gmt psxy -Jx -R -O >> outfile
Normally the values of the “params” and “limits” given to -Jx and -R in the psbasemap call persist for subsequent calls if I just put “-Jx -R” as I have done for the first call to psxy. But for the call to psxy after the “gmt regress” I get the error message “psxy [ERROR]: Found no history for option -Jx”. If I insert the “params” after the -Jx but not the “limits” after the -R in the call to psxy after the “gmt regress” I get the error message “psxy [ERROR]: Found no history for option -R”. Only when I include the “params” and “limits” for both -Jx and -R does the script run to completion.
My demo script is below. If you invoke it with input value 1 it gives the first error message, with input value 2 it gives the second, and with input value 0 or anything else it runs to completion.
The data are rubbish but as far as I can tell, the regression is correct.
How bizarre! The EOF is in the running version (or it wouldn’t have worked). It should of course be between the “<” and the “>”… I know what happened! The Markup interpreter in the editing box on the Forum website interprets anything between “<” and “>” as a markup and deletes it if it doesn’t recognise it. Please assume that the EOF is where it should be!