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

matharcvar.sh 1.1 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
  1. #!/usr/bin/env bash
  2. ps=matharcvar.ps
  3. cat << EOF > matharc-const.def
  4. 0 0 1 y
  5. 0 0 0.3 0 60 m
  6. EOF
  7. cat << EOF > matharc-two.def
  8. N: 2 oo
  9. 0 0 1 y
  10. 0 0 0.3 \$1 \$2 m
  11. EOF
  12. cat << EOF > matharc-one.def
  13. N: 1 o
  14. 0 0 1 y
  15. 0 0 0.3 0 \$1 m
  16. EOF
  17. echo "0 0 60 fixed" > q1.txt
  18. echo "0 0 90 one" > q2.txt
  19. echo "0 0 140 one " > q3.txt
  20. echo "0 0 20 270 two" > q4.txt
  21. gmt psxy -R-0.7/0.7/-0.7/0.7 -JX7c -Skmatharc-one/5c -P -N -W2p,red -Gred -Bag0.5 -BWSne q3.txt -K -X1.25i > $ps
  22. awk '{printf "@~a@~ = %s\n", $3}' q3.txt | gmt pstext -R -J -O -K -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  23. gmt psxy -R -J -Skmatharc-two/5c -O -N -W2p,red -Gred -Bag0.5 -BWSne q4.txt -K -Y10c >> $ps
  24. awk '{printf "@~a@~ = %s-%s\n", $3, $4}' q4.txt | gmt pstext -R -J -O -K -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  25. gmt psxy -R -J -Skmatharc-const/5c -O -N -W2p,red -Gred -Bag0.5 -BWSne q1.txt -K -X9c >> $ps
  26. awk '{printf "@~a@~ = %s\n", $3}' q1.txt | gmt pstext -R -J -O -K -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  27. gmt psxy -R -J -Skmatharc-one/5c -O -N -W2p,red -Gred -Bag0.5 -BWSne q2.txt -K -Y-10c >> $ps
  28. awk '{printf "@~a@~ = %s\n", $3}' q2.txt | gmt pstext -R -J -O -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
Tip!

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

Comments

Loading...