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

autolegendcolor.sh 571 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
26
27
28
29
30
31
  1. #!/usr/bin/env bash
  2. cat << EOF > p.txt
  3. > -LFirst
  4. 0 0
  5. 1 0
  6. 1 1
  7. 0 1
  8. > 2 2 -L"2nd item"
  9. 2 2
  10. 3 2
  11. 3 3
  12. 2 3
  13. > -LPoland
  14. 3 3
  15. 4 3
  16. 4 4
  17. 3 4
  18. > -L"My Area"
  19. 4 4
  20. 5 4
  21. 5 5
  22. 4 5
  23. EOF
  24. gmt begin autolegendcolor ps
  25. gmt subplot begin 2x2 -R-1/6/-1/6 -Fs8c -Srl -Scb -Blrtb -A -T"Test auto-color polygon legends"
  26. gmt plot p.txt -R-1/6/-1/6 -Gauto@50 -l"Poly #"+jBR -c
  27. gmt plot p.txt -R-1/6/-1/6 -Gauto@50 -l"Poly X-%2.2d"+jBR -c
  28. gmt plot p.txt -R-1/6/-1/6 -Gauto@50 -l"Poly A,Poly B,Poly C,N/A"+jBR -c
  29. gmt plot p.txt -R-1/6/-1/6 -Gauto@50 -l+jBR -c
  30. gmt subplot end
  31. gmt end show
Tip!

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

Comments

Loading...