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

panels_history.sh 1.0 KB

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
29
30
31
32
33
34
  1. #!/usr/bin/env bash
  2. # Test a 2x2 basemap matrix with different history settings
  3. # at different hierarchical levels, showing of splines
  4. cat << EOF > t.txt
  5. 5 0.5
  6. 12 7
  7. 30 5
  8. 50 4
  9. 75 1
  10. EOF
  11. gmt begin panels_history ps
  12. gmt set FONT_TITLE Helvetica-Bold
  13. gmt subplot begin 2x2 -Fs3i -M5p -A -SCb -SRl -Bwstr -R0/80/0/10 -T"SPLINE INTERPOLATIONS"
  14. gmt set FONT_ANNOT_PRIMARY=Times-Roman
  15. gmt subplot set 0 -ALINEAR
  16. gmt plot t.txt -Sc0.2c -Gblack
  17. gmt set GMT_INTERPOLANT linear
  18. gmt sample1d -I1 t.txt | gmt plot -W1p,green
  19. gmt subplot set 1 -ACUBIC
  20. gmt basemap
  21. gmt plot t.txt -Sc0.2c -Gblack
  22. gmt set GMT_INTERPOLANT cubic
  23. gmt sample1d -I1 t.txt | gmt plot -W1p,orange
  24. gmt subplot set 2 -A"BEZIER (In PostScript)"
  25. gmt basemap
  26. gmt plot t.txt -Sc0.2c -Gblack
  27. gmt plot t.txt -W1p,blue+s
  28. gmt subplot set 3 -AAKIMA
  29. gmt basemap --FONT_ANNOT_PRIMARY=Helvetica-Bold
  30. gmt plot t.txt -Sc0.2c -Gblack
  31. gmt sample1d -I1 t.txt | gmt plot -W1p,red
  32. gmt subplot end
  33. gmt end show
Tip!

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

Comments

Loading...