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

quotedclip.sh 990 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
34
35
36
37
38
  1. #!/usr/bin/env bash
  2. #
  3. # Check clip path and delayed text using -Sq:+e for both
  4. # straight and curved text paths
  5. ps=quotedclip.ps
  6. gmt psbasemap -R0/10/0/10 -JX15c/10c -K -P -B+t"Clip path from straight text"+ggray70 --MAP_TITLE_OFFSET=0 --FONT_TITLE=24p > $ps
  7. gmt psxy -R -J -W1p,red -Sqn1:+Lh+e+f18p -O -K << EOF >> $ps
  8. > "The quick brown fox jumps over the lazy dog"
  9. 0 8
  10. 10 5
  11. EOF
  12. # small polygon (should not cover up text path)
  13. cat << EOF > box.txt
  14. 7 4
  15. 7 8
  16. 9 8
  17. 9 4
  18. EOF
  19. gmt psxy -R -J -L -Gorange -W0.5p -O -K box.txt >> $ps
  20. gmt psclip -C -O -K >> $ps
  21. gmt psbasemap -R -J -O -K -Y12c -B+t"Clip path from curved text"+ggray70 --MAP_TITLE_OFFSET=0 --FONT_TITLE=24p >> $ps
  22. cat << EOF > t.txt
  23. > "In the Future, the Present will look like Today"
  24. EOF
  25. gmt math -T200/335/5 -N3/0 -o1,2 T -C1 COSD -C2 SIND -Ca 5 MUL 10 ADD -C1 5 SUB = >> t.txt
  26. gmt psxy -R -J -W1p,red -Sqn1:+Lh+c0+f18p+v+e -O -K t.txt >> $ps
  27. gmt psxy -R -J -L -Gorange -W0.5p -O -K box.txt >> $ps
  28. gmt psclip -C -O >> $ps
Tip!

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

Comments

Loading...