Problem with custom annotations
|Target version:||Candidate for next bugfix release|
echo "0 a A 0.5 a B 1 a C" > int echo "0.5 0.5"| gmt psxy -Sx1c -JX10c -R0/1/0/1 -BswNE -Bxycint -P > out.ps
1) There is now custom annotations, just numbers
2) Incorrect position of the cross
#6 Updated by Michael over 2 years ago
File gmt_support.c, function gmt_load_custom_annot, line 13158 in r19735.
nc = sscanf (S->text[row], "%s %[^\0]", type, txt);
I replace \0 on \n and it all worked .
I'm really wondering which implementation of sscanf allows a null byte in the middle of a format string?
#7 Updated by Paul over 2 years ago
Perhaps I was confused about how to specify "until end of line" in this case since there are no new-line characters in that string. So I used \0 and that works on at least OS X and Windows. However, happy to hear this works for you, it also works for me and I have made the change in r19736.