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

delay.sh 650 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
22
23
24
25
26
27
28
29
30
31
32
33
  1. #!/usr/bin/env bash
  2. # Test gmt pstext with text clip delay
  3. ps=delay.ps
  4. FONT=24p,Helvetica
  5. gmt pstext -R0/10/0/10 -JX15c/10c -F+f${FONT}+jCM -GC -B0 -B+glightbrown+t"Text below deliberately not plotted" -C0 -K -P << EOF > $ps
  6. 5 5 This text is plain but invisible
  7. EOF
  8. # Overlay big polygon
  9. gmt psxy -R -J -L -Glightblue -W0.5p -O -K << EOF >> $ps
  10. 1 1
  11. 9 1
  12. 9 9
  13. 1 9
  14. EOF
  15. gmt psclip -C -O -K >> $ps
  16. gmt pstext -R -J -F+f${FONT}+jCM -Gc -B0 -B+glightbrown -C0 -O -K -Y12c << EOF >> $ps
  17. 5 5 This text is plotted then clipped
  18. EOF
  19. # Overlay big polygon
  20. gmt psxy -R -J -L -Glightblue -W0.5p -O -K << EOF >> $ps
  21. 1 1
  22. 9 1
  23. 9 9
  24. 1 9
  25. EOF
  26. gmt psclip -C -O >> $ps
Tip!

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

Comments

Loading...