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

labels.sh 873 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
  1. #!/usr/bin/env bash
  2. # Test all the ways of labeling the bars with -D
  3. ps=labels.ps
  4. cat << EOF > t.txt
  5. 5
  6. 5
  7. 5
  8. 10
  9. 10
  10. 15
  11. 20
  12. 20
  13. 20
  14. 20
  15. EOF
  16. # Vertical bars
  17. gmt pshistogram -R0/30/0/5 t.txt -L0.5p -Gred -B0 -P -JX2i -W5 -F -D+f12p -K -X2i -Y8i > $ps
  18. gmt pshistogram -R t.txt -L0.5p -Gred -B0 -O -J -W5 -F -D+f12p+r -K -X2.5i >> $ps
  19. gmt pshistogram -R t.txt -L0.5p -Gred -B0 -O -J -W5 -F -D+f12p+b -K -X-2.5i -Y-2.25i >> $ps
  20. gmt pshistogram -R t.txt -L0.5p -Gred -B0 -O -J -W5 -F -D+f12p+r+b -K -X2.5i >> $ps
  21. # Horizontal bars
  22. gmt pshistogram -R t.txt -L0.5p -Gred -B0 -O -J -W5 -F -A -D+f12p -K -X-2.5i -Y-2.5i >> $ps
  23. gmt pshistogram -R t.txt -L0.5p -Gred -B0 -O -J -W5 -F -A -D+f12p+r -K -X2.5i >> $ps
  24. gmt pshistogram -R t.txt -L0.5p -Gred -B0 -O -J -W5 -F -A -D+f12p+b -K -X-2.5i -Y-2.25i >> $ps
  25. gmt pshistogram -R t.txt -L0.5p -Gred -B0 -O -J -W5 -F -A -D+f12p+r+b -X2.5i >> $ps
Tip!

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

Comments

Loading...