-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pslegend fail ghostscript conversion when using paragraph text mode #486
Comments
Thanks. I'll look at this when I have a bit more time. Note that in modern mode GMT has this l global option to build automatic legends. That should work from |
Hmm, rather stange. Can reproduce the error, but on the otherend this works fine
|
OK, if you do this, it works
There is something in the |
That did the trick. I cannot understand why the GMT lib state needs cleaning but at least there is a workaround. |
Think on all the defaults in GMT and how they cam be changed by calls to gmtset or using the --VAR online options. All of that is stored internally in memory. On normal shell calls at the end the program ends and all of it goes away. However, when the lib is called from external programs like, Julia or Matlab, the lib stays in memory and all those defaults charged. At the end of each module call we try to reset the structures that need too but something must be failing and next time one run |
In Julia 1.5.3, and 1.2, and 0.6, with GMT 5.4 or GMT 6.1.1: pslegend produces PS code lacking some function definitions when text is displayed wih paragraph mode (P). This causes Ghostscript to fail. I have traced the errors and missing PS definitions. The errors only occur with Julia-GMT, not with GMT alone. The simple example below only works when gmt_fixpslegend() is added before the pslegend in Julia-GMT (see also attached files):
using GMT
legendtest.zip
I suspect that the issue applies to pstext too, but have not tested this.
The text was updated successfully, but these errors were encountered: