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

colorlines.sh 798 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
  1. #!/usr/bin/env bash
  2. #
  3. # Set colors applied to lines via cpt and -Z in header
  4. ps=colorlines.ps
  5. echo "> -Z0" > lines.txt
  6. gmt math -T0/5/1 T 0.2 MUL = >> lines.txt
  7. echo "> -Z1" >> lines.txt
  8. gmt math -T0/5/1 T 0.2 MUL 1 ADD = >> lines.txt
  9. echo "> -Z2" >> lines.txt
  10. gmt math -T0/5/1 T 0.2 MUL 2 ADD = >> lines.txt
  11. echo "> -Z3" >> lines.txt
  12. gmt math -T0/5/1 T 0.2 MUL 3 ADD = >> lines.txt
  13. echo "> -Z4" >> lines.txt
  14. gmt math -T0/5/1 T 0.2 MUL 4 ADD = >> lines.txt
  15. echo "> -Z5" >> lines.txt
  16. gmt math -T0/5/1 T 0.2 MUL 5 ADD = >> lines.txt
  17. echo "> -Z6" >> lines.txt
  18. gmt math -T0/5/1 T 0.2 MUL 6 ADD = >> lines.txt
  19. echo "> -Z67" >> lines.txt
  20. gmt math -T0/5/1 T 0.2 MUL 7 ADD = >> lines.txt
  21. gmt makecpt -Cjet -T0/7/1 > t.cpt
  22. gmt psxy -R-1/6/-1/8 -JX6i/9i -P -B1g1 -BWSne -Xc lines.txt -Ct.cpt -W5p+cl > $ps
Tip!

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

Comments

Loading...