-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a45ccf9
commit ed2f676
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
outs: | ||
- md5: 452ffd60491b33499fed19555a0bb535.dir | ||
size: 1400714 | ||
nfiles: 25 | ||
- md5: 6e77da8a8cb4a2816e41162fe275360d.dir | ||
size: 1431120 | ||
nfiles: 26 | ||
path: psscale | ||
hash: md5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Testing categorical colorbars with default panels and interval annotations | ||
# E.g., https://forum.generic-mapping-tools.org/t/colorbar-box-and-annotation/4548 | ||
|
||
ps=interval-panel.ps | ||
|
||
cat << EOF > t.cpt | ||
# COLOR_MODEL = RGB | ||
0 247/251/255 10 247/251/255 | ||
10 222/235/247 20 222/235/247 | ||
20 198/219/239 50 198/219/239 | ||
50 158/202/225 100 158/202/225 | ||
100 107/174/214 150 107/174/214 | ||
150 066/146/198 200 066/146/198 | ||
200 033/113/181 300 033/113/181 | ||
300 008/081/156 500 008/081/156 | ||
500 008/048/107 600 008/048/107 | ||
EOF | ||
# Vertical colorbars | ||
gmt psscale -Ct.cpt -Dx0c/13c+w12c+v -Li3p -F+p2p -P -K > ${ps} | ||
gmt psscale -Ct.cpt -Dx5c/13c+w12c+v -LI3p -F+p2p -O -K >> ${ps} | ||
gmt psscale -Ct.cpt -Dx10c/13c+w12c+v -Li3p -O -K >> ${ps} | ||
gmt psscale -Ct.cpt -Dx15c/13c+w12c+v -LI3p -O -K >> ${ps} | ||
# Horizontal colorbars | ||
gmt psscale -Ct.cpt -Dx0c/1c+w18c+h -Li3p -F+p2p -O -K -X-1c >> ${ps} | ||
gmt psscale -Ct.cpt -Dx0c/4c+w18c+h -LI3p -F+p2p -O -K >> ${ps} | ||
gmt psscale -Ct.cpt -Dx0c/7c+w18c+h -Li3p -O -K >> ${ps} | ||
gmt psscale -Ct.cpt -Dx0c/10c+w18c+h -LI3p -O >> ${ps} |