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

barshv.sh 575 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. #
  3. # Plot bars symbols (horizontal and vertical) w/wo. base
  4. # Plots differ as the given x or y measures total height relative to base
  5. # or relative to origin (i.e., absolute height).
  6. ps=barshv.ps
  7. cat << EOF > tt.d
  8. 1 1
  9. 2 2
  10. 3 3
  11. 4 4
  12. 5 5
  13. EOF
  14. gmt psxy -R0/7/0/7 -JX3i -P -B0g1 -Sb0.2i+b0.5 -Gblue -W0.25p -X1i -Y1i tt.d -K > $ps
  15. gmt psxy -R -J -O -B0g1 -Sb0.2i+B0.5 -Gblue -W0.25p -X3.25i tt.d -K >> $ps
  16. gmt psxy -R -J -O -B0g1 -SB0.2i+b0.5 -Gblue -W0.25p -X-3.25i -Y3.5i tt.d -K >> $ps
  17. gmt psxy -R -J -O -B0g1 -SB0.2i+B0.5 -Gblue -W0.25p -X3.25i tt.d >> $ps
Tip!

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

Comments

Loading...