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

binarypie.sh 291 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
  1. #!/usr/bin/env bash
  2. # Test a 2-color binary pie chart custom symbol
  3. ps=binarypie.ps
  4. cat << EOF > pie.def
  5. N: 1o
  6. 0 0 1 0 \$1 w -Gblack -W-
  7. 0 0 1 \$1 360 w -Gred -W-
  8. EOF
  9. gmt math -T0/360/30 -N3 T -C0 COSD -C1 SIND = t.txt
  10. gmt psxy -R-1.5/1.5/-1.5/1.5 -JX6i -P -Baf -Xc -Skpie/0.75i t.txt > $ps
Tip!

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

Comments

Loading...