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

new_gaps.sh 871 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
  1. #!/usr/bin/env bash
  2. # Test gmt psxy lines with -g
  3. ps=new_gaps.ps
  4. cat << EOF >> tt.d
  5. 1 1
  6. 2 1
  7. 3 2
  8. 4 5
  9. 5 4
  10. 6 3
  11. 8 4
  12. 9 3
  13. 10 5
  14. 11 8
  15. EOF
  16. gmt psxy -R0/12/0/10 -JX3i -B5g1 -BWSne -P -Y6i tt.d -W2p -K > $ps
  17. gmt psxy -R -J -O -K -Sc0.1i -Gred tt.d >> $ps
  18. # Test -g in x
  19. gmt psxy -R -J -O -K -X3.5i -B5g1 -BWSne tt.d -W2p -gx1.5 >> $ps
  20. gmt psxy -R -J -O -K -Sc0.1i -Gred tt.d >> $ps
  21. gmt pstext -R -J -F+f18p+jTL -O -K -Gwhite -W -Dj0.1i >> $ps <<< "0 10 -gx1.5"
  22. # Test -g in y
  23. gmt psxy -R -J -O -K -X-3.5i -B5g1 -BWSne -Y-3.5i tt.d -W2p -gy1.5 >> $ps
  24. gmt psxy -R -J -O -K -Sc0.1i -Gred tt.d >> $ps
  25. gmt pstext -R -J -F+f18p+jTL -O -K -Gwhite -W -Dj0.1i >> $ps <<< "0 10 -gy1.5"
  26. # Test -g in d
  27. gmt psxy -R -J -O -K -X3.5i -B5g1 -BWSne tt.d -W2p -gd1.5 >> $ps
  28. gmt psxy -R -J -O -K -Sc0.1i -Gred tt.d >> $ps
  29. gmt pstext -R -J -F+f18p+jTL -O -Gwhite -W -Dj0.1i >> $ps <<< "0 10 -gd1.5"
Tip!

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

Comments

Loading...