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

clipannot.sh 592 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
  1. #!/usr/bin/env bash
  2. #
  3. ps=clipannot.ps
  4. # Make a grid, annotate every 20 and use those as clip paths
  5. # Then draw some lines intersection the annotations and draw
  6. # a dense gridline set. Text should not have lines through them.
  7. gmt grdmath -R0/10/0/10 -I0.1 X Y MUL = tmp.nc
  8. gmt grdcontour -A20+e+c0.05i+f24p -C10 tmp.nc -JX6i -P -K > $ps
  9. gmt psxy -R -J -O -K -W1p,red << EOF >> $ps
  10. > line through 20 label
  11. 0 0
  12. 8.7 10
  13. > line through 40 label
  14. 0 8.2
  15. 10 8.2
  16. EOF
  17. gmt psbasemap -R -J -O -K -Bg0.2 >> $ps
  18. gmt psclip -C -O -K >> $ps
  19. gmt psbasemap -R -J -O -B2 -BWSne+t"Delayed Annotations" >> $ps
Tip!

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

Comments

Loading...