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

cptmix.sh 958 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
  1. #!/usr/bin/env bash
  2. # See issue # 1093. Fixed in r18328
  3. ps=cptmix.ps
  4. cat << EOF > ex16_v9.cpt
  5. 30 p200/16 80 -
  6. 80 - 100 -
  7. 100 200/0/0 200 255/255/0
  8. 200 yellow 300 green
  9. EOF
  10. cat << EOF > ex16_v10.cpt
  11. 30 p200/16 80 -
  12. 80 - 100 -
  13. 100 255/255/0 200 255/255/0
  14. 200 green 300 green
  15. EOF
  16. cat << EOF > ex16_v11.cpt
  17. 80 - 100 -
  18. 100 200/0/0 200 255/255/0
  19. 200 yellow 300 green
  20. EOF
  21. gmt psxy -R-72/-64/-35/-30 -JM14c -T -K -P -X1.5i > $ps
  22. gmt psscale -R -J -O -K -Cex16_v9.cpt >> $ps -DJLM+w8.5c/0.618c+e+n -Ba+l"v9" -X3c
  23. gmt psscale -R -J -O -K -Cex16_v10.cpt >> $ps -DJLM+w8.5c/0.618c+e+n -Ba+l"v10" -X5c
  24. gmt psscale -R -J -O -K -Cex16_v11.cpt >> $ps -DJLM+w8.5c/0.618c+e+n -Ba+l"v11" -X5c
  25. gmt psscale -R -J -O -K -Cex16_v9.cpt >> $ps -DJLM+w8.5c/0.618c+e+n -I -Ba+l"v9" -X-10c -Y12c
  26. gmt psscale -R -J -O -K -Cex16_v10.cpt >> $ps -DJLM+w8.5c/0.618c+e+n -I -Ba+l"v10" -X5c
  27. gmt psscale -R -J -O -Cex16_v11.cpt >> $ps -DJLM+w8.5c/0.618c+e+n -I -Ba+l"v11" -X5c
Tip!

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

Comments

Loading...