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

scalesymb.sh 662 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
24
25
26
27
28
29
30
31
  1. #!/usr/bin/env bash
  2. #
  3. # Test -H for overall symbol and pen scaling via data column
  4. # The data column follows after optional z and size columns.
  5. cat << EOF > a.txt
  6. # -S sets no size, must read variable size rom file
  7. # x y z size scale
  8. > -W2p
  9. 0 0 3 1i 0.9
  10. 1 1 5 1.8i 0.3
  11. > -W2p,blue,-
  12. -1 -1 4 0.8i 0.5
  13. 1 -1 6 0.8i 1.3
  14. EOF
  15. cat << EOF > b.txt
  16. # A constant size is set via -S instead
  17. # x y z scale
  18. > -W2p
  19. 0 0 3 0.9
  20. 1 1 5 0.3
  21. > -W2p,blue,-
  22. -1 -1 4 0.5
  23. 1 -1 6 1.3
  24. EOF
  25. gmt begin scalesymb ps
  26. gmt makecpt -Cjet -T2/6
  27. gmt subplot begin 2x1 -R-2/2/-2/2 -Fs10c -Scl -Srb
  28. gmt plot -H -Sc -C a.txt -c
  29. gmt plot -H -Sc1.2i -C b.txt -c
  30. gmt subplot end
  31. gmt end show
Tip!

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

Comments

Loading...