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

stacklegend.sh 514 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
  1. #!/usr/bin/env bash
  2. #
  3. # Testing gmt pslegend absolute offsets in classic mode
  4. ps=stacklegend.ps
  5. cat << EOF > legend.txt
  6. S 0.1i T 0.07i red - 0.3i Ship
  7. S 0.1i c 0.07i blue - 0.3i Satellite
  8. EOF
  9. gmt psbasemap -R1/5/1/5 -JX4i -P -Bafg1 -K -Xa1i -Ya1i > $ps
  10. gmt pslegend -R -J -DjBL+w1.2i+o0.25i -F+gwhite+pthicker legend.txt -O -K -Xa1i -Ya1i >> $ps
  11. gmt psbasemap -R2/6/6/10 -J -O -K -Bafg1 -Xa2i -Ya6i >> $ps
  12. gmt pslegend -R -J -DjBL+w1.2i+o0.25i -F+gwhite+pthicker legend.txt -O -Xa2i -Ya6i >> $ps
  13. rm -f legend.txt
Tip!

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

Comments

Loading...