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

decoratedlines.sh 999 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
  1. #!/usr/bin/env bash
  2. # Place 7 decorated lines with symbols along them
  3. ps=decoratedlines.ps
  4. cat << EOF > vert.txt
  5. 90 0
  6. 90 6
  7. EOF
  8. echo "> The first curve" > data.txt
  9. gmt math -T0/180/1 T SIND = >> data.txt
  10. echo "> The second curve -S~n5:+ss0.5i+p0.25p+gcyan" >> data.txt
  11. gmt math -T0/180/1 T SIND 1 ADD = >> data.txt
  12. echo "> The third curve -S~N15:+sc0.1i+gblue+a0" >> data.txt
  13. gmt math -T0/180/1 T SIND 2 ADD = >> data.txt
  14. echo "> The fourth curve -S~lLM/RM:+sn0.3i+gblack" >> data.txt
  15. gmt math -T0/180/1 T SIND 2.5 ADD = >> data.txt
  16. echo "> The fifth curve -S~xvert.txt:+si0.3i+p1p+ggreen -W2p" >> data.txt
  17. gmt math -T0/180/1 T SIND 3 ADD = >> data.txt
  18. echo "> The sixth curve -S~N15:+sd0.1i+p0.25p,red -Wfaint" >> data.txt
  19. gmt math -T0/180/1 T SIND 4 ADD = >> data.txt
  20. echo "> The seventh curve -S~n5:+ss0.5i+p0.25p+gpurple+a0 -W1p,orange" >> data.txt
  21. gmt math -T0/180/1 T SIND 4.5 ADD = >> data.txt
  22. gmt psxy -R-5/185/-0.1/6 -JX6i/9i -P -Baf -W1p,red -S~n3:+sa0.5i+p0.25p,green+gblue data.txt > $ps
Tip!

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

Comments

Loading...