Closed joa-quim closed 4 years ago
So when gmt read is called it is still the same session and the options are simply retained? The _B -X etc are options created by subplot and used in the psxy/basemap call at the start of a panel. So they live to be reused in the gmt read call?
Perhaps a similar problem in mex if it is a persistent session.
So it looks the best medicine is let read
(and write
) be tolerant to those 2 (more?) options.
Yes, I suppose that is pretty easy to do. Chemo today am so maybe this pm.
Maybe better if the module that adds non-user-specified options (subplot, maybe in gmt_init.c as well) should remove them once they have served their purpose. Alternatively, those places should duplicate the options link, make changes to the duplicate link, use it, then dispose. I think the implementation simply assumed single process like CLI (or even pyGMT) but both mex and Julia will remember.
but works fine on classic