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

trimline.sh 539 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
  1. #!/usr/bin/env bash
  2. #
  3. # Highlight the problem of line obliquely exiting and being cut in an ugly way
  4. ps=trimline.ps
  5. gmt psxy -R0/6/0/6 -Jx1i --MAP_FRAME_TYPE=plain -W40p -Baf -BWSne -P -X1.25i << EOF > $ps
  6. -1 3
  7. 3 3
  8. 7 5
  9. EOF
  10. # The orig was faked using this script:
  11. #gmt psclip -R0/6/0/6 -Jx1i -T -K -P -X1.25i > $ps
  12. #gmt psxy -R-0.1/6.1/0/6 -J --MAP_FRAME_TYPE=plain -W40p -X-0.1i -O -K << EOF >> $ps
  13. #-1 3
  14. #3 3
  15. #7 5
  16. #EOF
  17. #gmt psclip -R0/6/0/6 -J -O -K -C >> $ps
  18. #gmt psbasemap -R -Jx1i --MAP_FRAME_TYPE=plain -Baf -BWSne -X0.1i -O >> $ps
Tip!

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

Comments

Loading...