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

PS_layers.sh 879 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
  1. #!/usr/bin/env bash
  2. #
  3. # Test that movie works with two precomputed PS layers as fore- and back-grounds.
  4. ps=PS_layers.ps
  5. # Must ensure the external PS and the movie PS use the same char set
  6. gmt set PS_CHAR_ENCODING ISOLatin1+
  7. # Make the two dummy layers: a pink background rectangle and a foreground DRAFT tex
  8. gmt plot -R0/9.4/0/5.2 -Jx1i -X0.1 -Y0.1 -T -B0 -B+gpink --PS_MEDIA=9.6ix5.4i -ps background
  9. echo DRAFT | gmt text -R0/9.4/0/5.2 -Jx1i -X0.1 -Y0.1 -F+f200+cCM --PS_MEDIA=9.6ix5.4i -ps foreground
  10. cat << EOF > map.sh
  11. gmt begin
  12. gmt basemap -R0/10/0/5 -JX7.6i/3.5i -B
  13. gmt end
  14. EOF
  15. # Just request the master PS frame
  16. gmt movie map.sh -CHD -NPS_layers -T50 -Fnone -M10,ps -Sbbackground.ps -Sfforeground.ps
  17. # Must delete the two layers since otherwise the test machinery will try to compare these PS
  18. # files with originals which do not exist...
  19. rm -f background.* foreground.*
Tip!

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

Comments

Loading...