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

subplotlegend.sh 1.1 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  1. #!/usr/bin/env bash
  2. # Test that legends in subplots work with -C and that
  3. # origins are reset for other overlays.
  4. # Test added due to https://github.com/GenericMappingTools/gmt/issues/1590
  5. gmt begin subplotlegend ps
  6. gmt subplot begin 2x2 -Fs7c/5c -A
  7. gmt subplot set 0
  8. gmt basemap -R0/10/0/10
  9. gmt legend -DjRT+w1.2c -F+p0.5p << EOF
  10. S 0.1c c 0.1c red - 0.3c a
  11. S 0.1c s 0.1c blue - 0.3c b
  12. EOF
  13. echo 5 5 | gmt plot -Sc0.5c -Gred
  14. gmt subplot set 1 -Cw1c -Cs1c
  15. #gmt subplot set 1
  16. gmt basemap -R0/10/0/10
  17. gmt legend -DjRT+w1.2c -F+p0.5p << EOF
  18. S 0.1c c 0.1c red - 0.3c a
  19. S 0.1c s 0.1c blue - 0.3c b
  20. EOF
  21. echo 5 5 | gmt plot -Sc0.5c -Gred
  22. gmt subplot set 2 -Ce1c
  23. #gmt subplot set 1
  24. gmt basemap -R0/10/0/10
  25. gmt legend -DjRT+w1.2c -F+p0.5p << EOF
  26. S 0.1c c 0.1c red - 0.3c a
  27. S 0.1c s 0.1c blue - 0.3c b
  28. EOF
  29. echo 5 5 | gmt plot -Sc0.5c -Gred
  30. gmt subplot set 3 -Ce1c -Cn2c
  31. #gmt subplot set 1
  32. gmt basemap -R0/10/0/10
  33. gmt legend -DjRT+w1.2c -F+p0.5p << EOF
  34. S 0.1c c 0.1c red - 0.3c a
  35. S 0.1c s 0.1c blue - 0.3c b
  36. EOF
  37. echo 5 5 | gmt plot -Sc0.5c -Gred
  38. gmt subplot end
  39. gmt end show
Tip!

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

Comments

Loading...