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

bar2dmultimode.sh 482 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
  1. #!/usr/bin/env bash
  2. # Test 2-D multiband bars with common base
  3. cat << EOF > testy.txt
  4. 1 2 5 3 8
  5. 2 1 6 1 5
  6. EOF
  7. cat << EOF > testx.txt
  8. 2 1 5 3 8
  9. 1 2 6 1 5
  10. EOF
  11. gmt begin bar2dmultimode ps
  12. gmt makecpt -Cjet -T0/4/1
  13. gmt subplot begin 2x1 -Fs10c
  14. gmt plot testy.txt -R0/3/0/25 -C -W1p -Sb0.5c+i4+B2 -c
  15. printf "0 2\n3 2\n" | gmt plot -W0.25p,dashed
  16. gmt plot testx.txt -R0/25/0/3 -C -W1p -SB0.5c+B2+i4 -c
  17. printf "2 0\n2 3\n" | gmt plot -W0.25p,dashed
  18. gmt subplot end
  19. gmt end show
Tip!

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

Comments

Loading...