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

clipping5.sh 1.4 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
58
59
60
  1. #!/usr/bin/env bash
  2. # GMT_KNOWN_FAILURE
  3. # Check ellipse clipping and filling/outline
  4. # Middle plot polygons have odd stray line along boundaries
  5. # Annotation mismatch will go away once bug is fixed and we rebuild orig
  6. ps=clipping5.ps
  7. cat << EOF > t.txt
  8. 170 48 30 4000 2000
  9. 240 -68 0 4500 4500
  10. 90 0 -30 4000 5000
  11. EOF
  12. gmt psxy -R0/360/-60/60 -JM6i -P -K -Baf -BWSne -Xc -SE -Gred -W5p,blue t.txt > $ps
  13. echo "60 -68 0 4500 4500" | gmt psxy -R -J -O -K -SE -W5p,blue >> $ps
  14. echo "300 68 0 4500 4500" | gmt psxy -R -J -O -K -SE -W5p,blue --PS_LINE_CAP=square >> $ps
  15. echo "10 50 D" | gmt pstext -R -J -O -K -F+jCM+f18p >> $ps
  16. cat << EOF > p.txt
  17. > clipped at bottom
  18. 100 -45
  19. 130 -40
  20. 140 -47
  21. 150 -54
  22. 130 -65
  23. 90 -60
  24. > clipped at left/right
  25. 30 20
  26. 60 23
  27. 80 35
  28. 70 38
  29. 40 35
  30. 20 33
  31. 5 29
  32. -15 24
  33. -25 20
  34. -40 10
  35. -33 5
  36. -15 15
  37. -5 18
  38. 5 19
  39. EOF
  40. gmt psxy -R -J -O -K -Baf -BWSne -Gorange -W5p,blue p.txt -Y3i >> $ps
  41. echo "10 50 C" | gmt pstext -R -J -O -K -F+jCM+f18p >> $ps
  42. cat << EOF > s.txt
  43. 0 1 c
  44. 1 0 s
  45. 2 1 t
  46. 1 2 g
  47. 1 1 a
  48. EOF
  49. gmt psxy -R0/2/0/2 -JX2.75i -O -K -Baf -BWSne -S1i -Gyellow -W5p,blue s.txt -Y3i >> $ps
  50. echo "0.2 1.8 A" | gmt pstext -R -J -O -K -F+jCM+f18p >> $ps
  51. cat << EOF > v.txt
  52. -0.9 -0.9 93 135
  53. -0.9 -0.9 60 270
  54. -0.9 -0.9 30 270
  55. -0.9 -0.9 -3 160
  56. EOF
  57. gmt psxy -R-1/1/-1/1 -JM2.75i -O -K -Baf -BwSnE -S=0.5i+e -Gcyan -W5p,brown v.txt -X3.25i >> $ps
  58. echo "-0.8 0.8 B" | gmt pstext -R -J -O -F+jCM+f18p >> $ps
Tip!

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

Comments

Loading...