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

textclip.sh 407 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
21
  1. #!/usr/bin/env bash
  2. # Test gmt pstext with text path clipping
  3. ps=textclip.ps
  4. FONT=16p,Helvetica
  5. gmt pstext -R0/10/0/10 -JX15c/10c -F+f${FONT}+jBL -Gc -B+ggray70 -C0 -K -P << EOF > $ps
  6. 1 3 This text should NOT be covered up by the tan box
  7. 1 8 Neither should this jolly text message
  8. EOF
  9. # Overlay big polygon
  10. gmt psxy -R -J -L -Gtan -W0.5p -O -K << EOF >> $ps
  11. 3 1
  12. 9 1
  13. 9 9
  14. 3 9
  15. EOF
  16. gmt psclip -C -O >> $ps
Tip!

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

Comments

Loading...