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

distributions.sh 2.3 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
  1. #!/usr/bin/env bash
  2. ps=distributions.ps
  3. # LL: Histogram in counts with 3 normal distribution curves based on L2, L1, and LMS statistsics
  4. gmt pshistogram -Baf -BWSne+glightblue @v3206_06.txt -R-6000/0/0/1300 -JX3i/2.0i -Gorange -L1p -Z0 -W200 -P -K -N0+p1p,red -N1+p1p,green -N2+p1p,blue -Y0.75i > $ps
  5. echo "0 1300 Counts" | gmt pstext -R -J -O -K -Dj0.1i -F+jTR+f12p >> $ps
  6. # LR: Same, but in percent
  7. gmt pshistogram -Bxaf -Byaf+u" %" -BWSne+glightblue @v3206_06.txt -R-6000/0/0/20 -JX3i/2.0i -Gorange -L1p -Z1 -W200 -O -K -N0+p1p,red -N1+p1p,green -N2+p1p,blue -X3.75i >> $ps
  8. echo "0 20 Percent" | gmt pstext -R -J -O -K -Dj0.1i -F+jTR+f12p >> $ps
  9. # ML: Same, but in log 1+counts
  10. gmt pshistogram -Baf -BWSne+glightblue @v3206_06.txt -R-6000/0/0/8 -JX3i/2.0i -Gorange -L1p -Z2 -W200 -O -K -N0+p1p,red -N1+p1p,green -N2+p1p,blue -X-3.75i -Y2.5i >> $ps
  11. echo "0 8 log1p(counts)" | gmt pstext -R -J -O -K -Dj0.1i -F+jTR+f12p >> $ps
  12. # MR: Same, but in log 1+percent
  13. gmt pshistogram -Baf -BWSne+glightblue @v3206_06.txt -R-6000/0/0/3.5 -JX3i/2.0i -Gorange -L1p -Z3 -W200 -O -K -N0+p1p,red -N1+p1p,green -N2+p1p,blue -X3.75i >> $ps
  14. echo "0 3.5 log1p(percent)" | gmt pstext -R -J -O -K -Dj0.1i -F+jTR+f12p >> $ps
  15. # TL: Same, but in log10 1+counts
  16. gmt pshistogram -Baf -BWSne+glightblue @v3206_06.txt -R-6000/0/0/3.5 -JX3i/2.0i -Gorange -L1p -Z4 -W200 -O -K -N0+p1p,red -N1+p1p,green -N2+p1p,blue -X-3.75i -Y2.5i >> $ps
  17. echo "0 3.5 log101p(counts)" | gmt pstext -R -J -O -K -Dj0.1i -F+jTR+f12p >> $ps
  18. # TR: Same, but in log10 1+percent
  19. gmt pshistogram -Baf -BWSne+glightblue @v3206_06.txt -R-6000/0/0/1.5 -JX3i/2.0i -Gorange -L1p -Z5 -W200 -O -K -N0+p1p,red -N1+p1p,green -N2+p1p,blue -X3.75i >> $ps
  20. echo "0 1.5 log101p(percent)" | gmt pstext -R -J -O -K -Dj0.1i -F+jTR+f12p >> $ps
  21. # L: Cumulative histogram
  22. gmt pshistogram -Bxaf -Byafg100+u" %" -BWSne+glightblue @v3206_06.txt -R-6000/0/0/105 -JX3i/2.0i -Glightred -L1p -Z1 -Q -W200 -O -K -N0+p1p,red -N1+p1p,green -N2+p1p,blue -X-3.75i -Y2.5i >> $ps
  23. # R: Cumulative histogram staircase
  24. gmt pshistogram -Bxaf -Byafg100+u" %" -BWSne+glightblue @v3206_06.txt -R-6000/0/0/105 -JX3i/2.0i -S -L1p -Z1 -Q -W200 -O -K -N0+p1p,red -N1+p1p,green -N2+p1p,blue -X3.75i >> $ps
  25. gmt pslegend -Dg0/0+w1.2i+jBR+o0.1i/0.1i -R -J -O -F+p2p+gwhite << EOF >> $ps
  26. S 0.3i - 0.45i - 1p,red 0.7i L@-2@-
  27. S 0.3i - 0.45i - 1p,green 0.7i L@-1@-
  28. S 0.3i - 0.45i - 1p,blue 0.7i LMS
  29. EOF
Tip!

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

Comments

Loading...