Custom Symbol Macro Language code expansion

Kristof Koch <[email protected]> Sat, 3 May 2014 17:32:33 +0200
Newsgroups gmane.comp.gis.gmt.user
Message-ID <[email protected]>
Dear List,

I'm trying to develop a custom symbol to annotate every 10° latitude and longitude with their respective values. The GMT Docs state: "You can embed %X or %Y to add the current longitude (or x) and latitude (or y) in your label string." (25.2.4. "Text substitution")

I only got the string "%Y" in the plotted symbol. See screenshot at http://kristofkoch.de/gmt/text_string_subst.png [1]


I tried the following (bash script):

cat > lat_label.def << END
0a R
0.1 -0.1 7p \%Y l+jTL -W- -Gblack
END


Maybe I didn't understand the documentation concerning the expansion of special codes. I'd be grateful if anyone can point out the correct usage of "%Y".

Regards,
Kristof Koch


[1] I filed a bug for the excessively large letters: http://gmt.soest.hawaii.edu/issues/553 If anyone can explain the behavior please advise.
--
My PGP Public Key: http://kristofkoch.de/pgp/


To unsubscribe, send the message "signoff gmt-help" to [email protected]
signature.asc (application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJTZQwRAAoJEJ3YS27/3eKHfU8H/i1UFnUwP4JDOxRhRep4+jUB
Rc+j2wODBA0kkm2WMPYecB+RjK3FgiCx0SJoP7zTDxyozAJhIh2AgrYXToVxVnVL
26oEOnfcWJAhaQjnR+OWaiZSWg1X4r5kjox7nTYvQG08OPl+lIMlCJXkYAWHI8Mo
G+fwf7+KuCkNLH04WgxfYOI7GPzhgElydl1mGcJXD76zqnkMjbaC9Tgrs5NHy1if
1opPfzw52EqwE2IByivq3BZ7abyZxlyPJPAyTjsKpuSCBhA92hwUp0OQC+fh4sG3
xCLXS1fMHfKrVuurERoD1uu2mfrx/MKjEupKcZ8Y2N7UkfrPidAWukGGWekcxN0=
=TgRl
-----END PGP SIGNATURE-----