Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

custom_textsymbol.sh 582 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  1. #!/usr/bin/env bash
  2. #
  3. # Check custom symbol needed 2 column strings from trailing text
  4. # and using size to scale the texts. Note words must be separated
  5. # by a single tab or space
  6. ps=custom_textsymbol.ps
  7. cat << EOF > t.txt
  8. # LON LAT SIZE STRING1 STRING2
  9. # --------------------------------
  10. 118 0 1c one ONE
  11. 119 1 2c two TWO
  12. 120 2 3c three THREE
  13. EOF
  14. cat << EOF > text_subst_symbol.def
  15. N: 2 ss
  16. 0 0 1 \$t0 l -Gred
  17. 0 0 1 \$t1 l -Gblue
  18. EOF
  19. gmt pscoast -R117/-1.5/122.5/3r -JM15c -Bag -Di -Ggrey -Wthinnest -A250 -P -K -Xc > $ps
  20. gmt psxy -R -J t.txt -Sktext_subst_symbol -O >> $ps
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...