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 640 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
  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 grd2xyz tmp.nc > tmp.xyz
  9. gmt pscontour -R0/10/0/10 -A20+e+c0.05i+f24p -C10 tmp.xyz -JX6i -P -K -W0.5p > $ps
  10. gmt psxy -R -J -O -K -W1p,red << EOF >> $ps
  11. > line through 20 label
  12. 0 0
  13. 10 8.5
  14. > line through 40 label
  15. 0 8.2
  16. 10 8.2
  17. EOF
  18. gmt psbasemap -R -J -O -K -Bg0.2 >> $ps
  19. gmt psclip -C -O -K >> $ps
  20. 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...