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

autolegendcolorL.sh 597 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
  1. #!/usr/bin/env bash
  2. cat << EOF > p.txt
  3. > -LFirst
  4. 0 0
  5. 1 0
  6. 1 1
  7. > 2 2 -L"2nd item"
  8. 3 2
  9. 3 3
  10. 2 3
  11. > -LCurve
  12. 3 3
  13. 4 3
  14. 3 4
  15. > -L"My Line"
  16. 4 4
  17. 5 5
  18. 4 5
  19. EOF
  20. gmt begin autolegendcolorL ps
  21. gmt set COLOR_SET red,black,cyan,darkgreen
  22. gmt subplot begin 2x2 -R-1/6/-1/6 -Fs8c -Srl -Scb -Blrtb -A -T"Test auto-color line legends"
  23. gmt plot p.txt -R-1/6/-1/6 -W3p,auto -l"Line #"+jBR -c
  24. gmt plot p.txt -R-1/6/-1/6 -W3p,auto -l"Line X-%2.2d"+jBR -c
  25. gmt plot p.txt -R-1/6/-1/6 -W3p,auto -l"Line A,Line B,Line C,N/A"+jBR -c
  26. gmt plot p.txt -R-1/6/-1/6 -W3p,auto -l+jBR -c
  27. gmt subplot end
  28. gmt end show
Tip!

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

Comments

Loading...