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

legend.sh 1.2 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
  1. #!/usr/bin/env bash
  2. #
  3. # Testing gmt pslegend capabilities
  4. ps=legend.ps
  5. gmt makecpt -Cpanoply -T-8/8 > tt.cpt
  6. gmt set FONT_ANNOT_PRIMARY 12p
  7. gmt pslegend -R0/10/0/10 -JM6i -Dx0.5i/0.5i+w5i+jBL+l1.2 -C0.1i/0.1i -F+p+gazure1+r -B5f1 -P > $ps <<EOF
  8. # Legend test for gmt pslegend
  9. # G is vertical gap, V is vertical line, N sets # of columns, D draws horizontal line,
  10. # H is ps=legend.ps
  11. #
  12. G -0.1i
  13. H 24p,Times-Roman My Map Legend
  14. D 0.2i 1p
  15. N 2
  16. V 0 1p
  17. S 0.1i c 0.15i p300/12 0.25p 0.3i This circle is hachured
  18. S 0.1i e 0.15i yellow 0.25p 0.3i This ellipse is yellow
  19. S 0.1i w 0.15i green 0.25p 0.3i This wedge is green
  20. S 0.1i f 0.25i blue 0.25p 0.3i This is a fault
  21. S 0.1i - 0.15i - 0.25p,- 0.3i A contour
  22. S 0.1i v 0.25i magenta 0.5p 0.3i This is a vector
  23. S 0.1i i 0.15i cyan 0.25p 0.3i This triangle is boring
  24. D 0.2i 1p
  25. V 0 1p
  26. N 1
  27. M 5 5 600+u+f
  28. G 0.05i
  29. I @SOEST_block4.png 3i CT
  30. G 0.05i
  31. B tt.cpt 0.2i 0.2i -B0
  32. G 0.05i
  33. L 9p,Times-Roman R Smith et al., @%5%J. Geophys. Res., 99@%%, 2000
  34. G 0.1i
  35. T Let us just try some simple text that can go on a few lines.
  36. T There is no easy way to predetermine how many lines may be required
  37. T so we may have to adjust the height to get the right size box.
  38. EOF
  39. rm -f tt.cpt
Tip!

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

Comments

Loading...