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

comparesymbols.sh 1.1 KB

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  1. #!/usr/bin/env bash
  2. # Testing that standard symbols plotted in psxy directly are the same
  3. # as plotted when used as macros via a custom symbol.
  4. ps=comparesymbols.ps
  5. gmt psxy -R-1/1/-1/1 -JX4i -P -Bafg1+0.5 -BWSne+t"Using psxy Symbols" -S2i -Wfaint -K -Xc << EOF > $ps
  6. > -Wfaint -Glightgray
  7. 0 0 0 30 w
  8. > -G-
  9. 0 0 a
  10. 0 0 g
  11. 0 0 h
  12. 0 0 i
  13. > -W4p
  14. 0 0 n
  15. > -Wfaint
  16. 0 0 x
  17. 0 0 s
  18. 0 0 d
  19. 0 0 t
  20. > -Wfaint,blue
  21. 0 0 -
  22. 0 0 y
  23. > -Wfaint,red
  24. 0 0 0 2i 1i e
  25. > -Wfaint,orange
  26. 0 0 2i 2i r
  27. > -W4p,blue
  28. 0 0 90 180 m
  29. > -W1p,green
  30. 0 0 c
  31. EOF
  32. echo 0 0 1i 90 180 m | gmt psxy -R -J -O -S0.1i -W1p,blue,- -K >> $ps
  33. # Now via custom symbols
  34. cat << EOF > junk.def
  35. 0 0 1 0 30 w -Glightgray
  36. 0 0 1 a -Wfaint
  37. 0 0 1 g -Wfaint
  38. 0 0 1 h -Wfaint
  39. 0 0 1 i -Wfaint
  40. 0 0 1 n -W4p
  41. 0 0 1 x -Wfaint
  42. 0 0 1 s -Wfaint
  43. 0 0 1 d -Wfaint
  44. 0 0 1 t -Wfaint
  45. 0 0 1 - -Wfaint,blue
  46. 0 0 1 y -Wfaint,blue
  47. 0 0 0 1 0.5 e -Wfaint,red
  48. 0 0 0 1 0.5 e -Wfaint,red
  49. 0 0 1 c -W1p,green
  50. 0 0 1 90 180 m+b+e -W1p,blue,-
  51. 0 0 1 1 r -Wfaint,orange
  52. # These are custom macros only but shows arc
  53. 0.5 0 M -W2p,red
  54. 0 0 1 0 30 A
  55. S
  56. EOF
  57. echo 0 0 | gmt psxy -R -J -O -Bafg1+0.5 -Skjunk/2i -Y4.75i -BWsne+t"Using Custom Symbols" >> $ps
Tip!

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

Comments

Loading...