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

handednessclip.sh 784 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
52
53
54
55
  1. #!/usr/bin/env bash
  2. # Try clipping with different handedness and -N
  3. # draw line around working area
  4. ps=handednessclip.ps
  5. gmt psxy -JX3i -R0/1/0/1 -K -P -Xc << END > $ps
  6. 0 0
  7. 0 1
  8. 1 1
  9. 1 0
  10. 0 0
  11. END
  12. # mask inside of frame of working area
  13. gmt psclip -J -R -O -K -N << END >> $ps
  14. 0.2 0.2
  15. 0.2 0.8
  16. 0.8 0.8
  17. 0.8 0.2
  18. 0.2 0.2
  19. END
  20. # fill whole area
  21. gmt psxy -J -R -O -K -Gorange << END >> $ps
  22. 0 0
  23. 0 1
  24. 1 1
  25. 1 0
  26. 0 0
  27. END
  28. # clip masked inside
  29. gmt psclip -O -K -C >> $ps
  30. # The other way
  31. gmt psxy -J -R -O -K -Y4i << END >> $ps
  32. 0 0
  33. 0 1
  34. 1 1
  35. 1 0
  36. 0 0
  37. END
  38. # mask inside of frame of working area
  39. gmt psclip -J -R -O -K -N << END >> $ps
  40. 0.2 0.2
  41. 0.8 0.2
  42. 0.8 0.8
  43. 0.2 0.8
  44. 0.2 0.2
  45. END
  46. # fill whole area
  47. gmt psxy -J -R -O -K -Gorange << END >> $ps
  48. 0 0
  49. 0 1
  50. 1 1
  51. 1 0
  52. 0 0
  53. END
  54. # clip masked inside
  55. gmt psclip -O -C >> $ps
Tip!

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

Comments

Loading...