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

bezierline.sh 381 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
  1. #!/usr/bin/env bash
  2. # Test pen modifier +s for Bezier spline in psxy
  3. ps=bezierline.ps
  4. cat << EOF > t.txt
  5. 0 0
  6. 1 1
  7. 2 1
  8. 3 0.5
  9. 2 0.25
  10. EOF
  11. # Linear
  12. gmt psxy -R-1/4/-1/3 -Jx1i -P -K -Baf -W0.25p -Gred -Sc0.2i t.txt -Xc > $ps
  13. gmt psxy -R -J -O -K -W1p t.txt >> $ps
  14. # Bezier spline
  15. gmt psxy -R -J -O -K -Baf -W0.25p -Gred -Sc0.2i t.txt -Y4.75i >> $ps
  16. gmt psxy -R -J -O -W1p+s t.txt >> $ps
Tip!

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

Comments

Loading...