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