Skip to content

Commit

Permalink
Add new test and in DVC
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWessel committed Jan 1, 2024
1 parent a45ccf9 commit ed2f676
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/baseline/psscale.dvc
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
29 changes: 29 additions & 0 deletions test/psscale/interval-panel.sh
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}

0 comments on commit ed2f676

Please sign in to comment.