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

quotedstraight.sh 618 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
  1. #!/usr/bin/env bash
  2. # Place 3 lines with text along the straight lines and rounded boxes
  3. ps=quotedstraight.ps
  4. echo "> -L\"The first curve\"" > data.txt
  5. gmt math -T0/180/45 T 180 DIV = >> data.txt
  6. echo "> -L\"The second curve\"" >> data.txt
  7. gmt math -T0/180/45 T 180 DIV 2 ADD = >> data.txt
  8. echo "> -L\"The third curve\"" >> data.txt
  9. gmt math -T0/180/45 T 180 DIV 4 ADD = >> data.txt
  10. gmt psxy -R-5/185/-1/6 -JX6i/9i -P -K -W1p,red -Sqn2:+f12p+Lh+o+e data.txt --PS_COMMENTS=true > $ps
  11. gmt psbasemap -R -J -O -K -B0 -B+gyellow --PS_COMMENTS=true >> $ps
  12. gmt psclip -R -J -O -C -B+t"Clipped text with yellow on top" >> $ps
Tip!

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

Comments

Loading...