psxy custom symbol with "l" first occurrence printed way to large
|Target version:||Candidate for next bugfix release|
I have a simple custom symbol with some text string to be plotted. At the first occurrence of the custom symbol it is plotted way to large, all other occurrences are plotted as desired.
first occurrence of the custom symbol plotted way to large, all other occurrences as expected
all occurrences of the custom symbol are plotted the same size.
I attached a small sample script to highlight the problem.
I'm running GMT Version 5.1.1_r12890 [64-bit] on x86_64 GNU/Linux
All the best,
#1 Updated by Paul almost 5 years ago
- Status changed from New to In Progress
- Assignee set to Paul
- Target version set to Candidate for next bugfix release
Problem has to do with how text within symbols are dealt with (incorrectly). I need to modify this by pre-scanning custom symbols for the use of text, set up PS macros for handling the font stuff. At the moment there is a problem in that the font is first set up for the first point (and incorrectly) but inside a gsave/grestore branch, hence invisible to the next symbol which simply inherits whatever the last font settings were.
#2 Updated by Paul almost 5 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
I have corrected how fonts and texts are handled in custom symbols, and updated Appendix M. Apart from fixing the bugs, I have clarified how text and fonts are specified. In particular, one can specify a fixed (and symbol-size independent) text using a size in points (with p appended, i.e., 12p) or a relative size in the 0-1 range (just as for other plot items) and the font size will be scaled according to chosen symbol size. I have added a new test script (test/psxy/txtsymb.sh) to ensure things work.