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

fill_frame.sh 950 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
  1. #!/usr/bin/env bash
  2. #
  3. # Testing gmt pslegend fill and frames
  4. ps=fill_frame.ps
  5. color=yellow
  6. gmt psbasemap -R0/15/0/25 -Jx1c -P -B0 -K -Y1c > $ps
  7. gmt pslegend -R -J -O -K -Dx1c/24c+w8c/1c+jTL -F+g$color >> $ps <<< "L - C $color fill, no frame"
  8. gmt pslegend -R -J -O -K -Dx1c/22c+w8c/1c+jTL -F+p+g$color >> $ps <<< "L - C $color fill, black frame"
  9. gmt pslegend -R -J -O -K -Dx1c/20c+w8c/1c+jTL -F+p2p,blue+g${color}@50 >> $ps <<< "L - C $color@@50 fill, blue frame"
  10. gmt pslegend -R -J -O -K -Dx1c/18c+w8c/1c+jTL -F+p2p,blue@50+g$color >> $ps <<< "L - C $color fill, blue@@50 frame"
  11. gmt pslegend -R -J -O -K -Dx1c/15c+w8c+jTL -F+p+g$color >> $ps <<%
  12. P
  13. T This text wraps to the next line. It uses all standard paragraph modes. But what if you want to use left alignment?
  14. %
  15. gmt pslegend -R -J -O -Dx1c/12c+w8c+jTL -F+p+g$color >> $ps <<%
  16. P - - - - - - - l
  17. T Same trying to do left alignment. That seems to work nicely but needs 8 parameters on P line.
  18. %
Tip!

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

Comments

Loading...