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

cbars.sh 622 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
  1. #!/usr/bin/env bash
  2. ps=cbars.ps
  3. # Use CPT's low/high colors
  4. gmt makecpt -Ccool -Ic -T-6000/0 -N > 1.cpt
  5. gmt makecpt -Cdem2 -D -T0/5000 >> 1.cpt
  6. # Use current GMT default fore/back colors
  7. gmt makecpt -Ccool -Ic -T-6000/0 -N > 2.cpt
  8. gmt makecpt -Cdem2 -M -T0/5000 >> 2.cpt
  9. # Use defaults at the time of run
  10. gmt makecpt -Ccool -Ic -T-6000/0 -N > 3.cpt
  11. gmt makecpt -Cdem2 -N -T0/5000 >> 3.cpt
  12. # Plot the three scales
  13. gmt psscale -Baf -Dx1i/1i+w7i+v+e -P -K -C1.cpt > $ps
  14. gmt psscale -Baf -Dx3i/1i+w7i+v+e -O -K -C2.cpt >> $ps
  15. gmt psscale -Baf -Dx5i/1i+w7i+v+e -O -C3.cpt --COLOR_BACKGROUND=blue --COLOR_FOREGROUND=red >> $ps
Tip!

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

Comments

Loading...