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

shrinkvec2.sh 672 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
  1. #!/usr/bin/env bash
  2. # Test shrinking vector heads, part 2
  3. # Get fill and/or pen color via CPT on z values
  4. gmt begin shrinkvec2 ps
  5. gmt math -T0/2/0.1 -o1,0 0 = | awk '{printf "%s\t%s\t%s\t0\t%si\n", $1, $2, $2, $2}' > data.txt
  6. gmt makecpt -Cjet -T0/2
  7. # Use z and CPT for painting the head only
  8. gmt plot data.txt -R0/1/0/2.1 -JX2i/9i -Sv0.5i+ea+h0.4+jb+n2i -W3p+cf -C -B -BWStr
  9. # Use z and CPT for painting the head and turn off head outline
  10. gmt plot data.txt -Sv0.5i+ea+h0.4+jb+n2i+p- -W3p+cf -C -B -Blstr -X2.25i
  11. # Use z and CPT for painting the head and stem
  12. gmt plot data.txt -Sv0.5i+ea+h0.4+jb+n2i -W3p+c -C -B -Blstr -X2.25i
  13. rm -f data.txt t.cpt
  14. gmt end show
Tip!

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

Comments

Loading...