I am trying to insert lines between subplots but sometimes it does not plot in a correct way , it may disappear or becomes shorter than expected.
Is there any possible solution to overcome this problem?
I am not sure what the “region” (i.e., -R) is for the subplot after you end it since nothing was set. I think the dimensions of the whole subplot goes into a hidden -JXwidth/height but not sure what -R might be set to. You could try to add -R to your line-drawing psxy with what you think it should be given your coordinates.
Hmm, this raises the issue that we don’t have any option in modern mode to save a non-closed postscript file that we could fine tune later with the classic mode, like adding lines with paper coordinates as this case is bagging to.
I was thinking on this on a programmers perspective only but it actually has a use for users also (I’m sure Kristof would agree). Imagine some complicated basemap made in modern and to which a simpler and variable plotting elements need to be added on a regular basis. We can do that in classic but not in modern.
As fo doing it in Julia, I think I came out with a solution:
Before calling gmt endsteal the ps file from its temporary location (this the part that needs some investigation on how to do it)
This is not good. I don’t remember that discussion nor, by consequence, what I was thinking back then. But I’m proposing here is quite simple and would not complicate modern at all. Just an option to let go the PS file without closing it.