Bug #553

psxy custom symbol with "l" first occurrence printed way to large

Added by Kristof over 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:2014-05-02
Priority:NormalDue date:
Assignee:Paul% Done:


Target version:Candidate for next bugfix release
Affected version:5.x-svn Platform:


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.

observed behavior:
first occurrence of the custom symbol plotted way to large, all other occurrences as expected

expected behavior:
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,

custom_symbol_testcase.sh Magnifier - Example script (566 Bytes) Kristof, 2014-05-02 10:27

custom_symbol_testcase_output.pdf - Output of the example script converted to pdf (21.3 KB) Kristof, 2014-05-02 10:27

Associated revisions

Revision 13101
Added by Paul over 3 years ago

Partially address issue #553

Revision 13120
Added by Remko over 3 years ago

Fix bug in treatment of variable text introduced when fixing issue #553.
This fixes issue #554.


#1 Updated by Paul over 3 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 over 3 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.
In r13102.

#3 Updated by Kristof over 3 years ago


thank you for your fix. I'll give it a try and report back. I like your solution to having a way to define a fixed or a relative font size.

All the best,

#4 Updated by Paul about 3 years ago

  • Status changed from Resolved to Closed

I am closing this as fixed.

Also available in: Atom PDF