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

polyholes.sh 592 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
40
41
42
43
44
45
46
47
48
49
50
51
  1. #!/usr/bin/env bash
  2. # Test that polygons with holes plot correctly regardless of handedness
  3. # for both geo and Cartesian plots
  4. cat << EOF > quads.dat
  5. > -Gred CCW
  6. 0 0
  7. 5 0
  8. 5 10
  9. 0 10
  10. 0 0
  11. > -Ph CW
  12. 2 1
  13. 2 3
  14. 4 3
  15. 4 1
  16. 2 1
  17. > -Ph CCW
  18. 2 4
  19. 4 4
  20. 4 6
  21. 2 6
  22. 2 4
  23. > -Ph CCW origin TopLeft
  24. 2 9
  25. 2 7
  26. 4 7
  27. 4 9
  28. 2 9
  29. > CW -Gblue
  30. 5 0
  31. 5 10
  32. 10 10
  33. 10 0
  34. 5 0
  35. > -Ph CW
  36. 7 1
  37. 7 3
  38. 9 3
  39. 9 1
  40. 7 1
  41. > -Ph CCW
  42. 7 4
  43. 9 4
  44. 9 6
  45. 7 6
  46. 7 4
  47. EOF
  48. gmt begin polyholes ps
  49. gmt plot quads.dat -JX10c -Ba2f1 -BWSen -R-0.5/10.5/-0.5/10.5 -Gred -W1p
  50. gmt plot quads.dat -JM10c -Ba2f1 -BWSen -Gred -W1p -Y12c
  51. gmt end show
Tip!

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

Comments

Loading...