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

clip_draw.sh 782 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
32
33
34
35
36
37
38
39
  1. #!/usr/bin/env bash
  2. # Ensure -W -N play nice, see https://github.com/GenericMappingTools/gmt/issues/5704
  3. echo "0 0
  4. 1 1
  5. 0 1" > clip.txt
  6. echo ".5 .25
  7. .5 .5
  8. .5 .75
  9. .25 .5
  10. .75 .5" > data.txt
  11. gmt begin clip_draw
  12. # -N
  13. gmt subplot begin 2x2 -Fs8c -Scb -Srl -R0/1/0/1 -A
  14. gmt subplot set -A"-N"
  15. gmt basemap
  16. gmt clip clip.txt -N
  17. gmt plot -Sc.5c -G128 -W.5p,0 data.txt
  18. gmt clip -C
  19. # -N -W
  20. gmt subplot set -A"-N -W"
  21. gmt clip clip.txt -N -W.25p,blue
  22. gmt plot -Sc.5c -G128 -W.5p,0 data.txt
  23. gmt clip -C
  24. # neither
  25. gmt subplot set -A"none"
  26. gmt basemap
  27. gmt clip clip.txt
  28. gmt plot -Sc.5c -G128 -W.5p,0 data.txt
  29. gmt clip -C
  30. #-W
  31. gmt subplot set -A"-W"
  32. gmt psbasemap
  33. gmt clip clip.txt -W.25p,blue
  34. gmt plot -Sc.5c -G128 -W.5p,0 data.txt
  35. gmt clip -C
  36. gmt subplot end
  37. gmt end show
Tip!

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

Comments

Loading...