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

fancy.sh 1.6 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
  1. #!/usr/bin/env bash
  2. #
  3. # Testing gmt pslegend fancy frames
  4. ps=fancy.ps
  5. gmt makecpt -Cpanoply -T-8/8/1 > tt.cpt
  6. gmt set FONT_ANNOT_PRIMARY 12p
  7. cat << EOF > tt.txt
  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=fancy.ps
  11. #
  12. G -0.1i
  13. H 24p,Times-Roman Map Legend
  14. D 0.2i 1p
  15. V 0 1p
  16. S 0.1i c 0.15i p300/12 0.25p 0.3i This circle is hachured
  17. S 0.1i e 0.15i yellow 0.25p 0.3i This ellipse is yellow
  18. S 0.1i w 0.15i green 0.25p 0.3i This wedge is green
  19. S 0.1i f 0.25i blue 0.25p 0.3i This is a fault
  20. S 0.1i - 0.15i - 0.25p,- 0.3i A contour
  21. S 0.1i v 0.25i magenta 0.5p 0.3i This is a vector
  22. S 0.1i i 0.15i cyan 0.25p 0.3i This triangle is boring
  23. EOF
  24. gmt psbasemap -R0/6.5/0/10 -Jx1i -P -B0 -K -Y0.5i > $ps
  25. gmt pslegend -R -J -O -K -Dx0.25i/9.75i+w2.75i+jTL+l1.2 -C0.1i/0.1i -F+p+gwhite tt.txt >> $ps
  26. gmt pslegend -R -J -O -K -Dx6.25i/9.75i+w2.75i+jTR+l1.2 -C0.1i/0.1i -F+p+gwhite+r tt.txt >> $ps
  27. gmt pslegend -R -J -O -K -Dx0.25i/7.25i+w2.75i+jTL+l1.2 -C0.1i/0.1i -F+p2p+gwhite+i0.5p tt.txt >> $ps
  28. gmt pslegend -R -J -O -K -Dx6.25i/7.25i+w2.75i+jTR+l1.2 -C0.1i/0.1i -F+p2p+gwhite+i0.5p+s5p/-3p/gray tt.txt >> $ps
  29. gmt pslegend -R -J -O -K -Dx0.25i/4.75i+w2.75i+jTL+l1.2 -C0.1i/0.1i -F+p2p,blue+gwhite+i0.5p,blue tt.txt >> $ps
  30. gmt pslegend -R -J -O -K -Dx6.25i/4.75i+w2.75i+jTR+l1.2 -C0.1i/0.1i -F+p2p,blue+gwhite+i0.5p,blue+s5p/-3p/navy tt.txt >> $ps
  31. gmt pslegend -R -J -O -K -Dx0.25i/2.25i+w2.75i+jTL+l1.2 -C0.1i/0.1i -F+i2p,blue+gwhite+p0.5p,blue tt.txt >> $ps
  32. gmt pslegend -R -J -O -Dx6.25i/2.25i+w2.75i+jTR+l1.2 -C0.1i/0.1i -F+gcornsilk+i2p+p0.5p+s-5p/-3p/orange+r tt.txt >> $ps
Tip!

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

Comments

Loading...