Debian Codegraph @

test/psscale/colorbar-nans-v.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 # Show various placements of NaN rectangle on either side of bar
3 # and with default, none, or user-supplied label. This tests the
4 # new +n|N[-|<string>] syntax where +n places it on the left side
5 # (bottom for vertical bars), +N places NaN box on the right side
6 # (or top for vertical bars), the - sign means no label, and <string>
7 # is the user-supplied label [Default is NaN]. So backwards support
8 # where +n gives a left-side NaN label box. This relates to PR
9 #
10 # Vertical colorbar tests
11
12 gmt begin colorbar-nans-v
13 gmt basemap -R0/20/0/21 -Jx1c -B0 -B+t"Vertical Colorbar NaN placement and annotation(s)"+s"Mixed with back- and foreground colors and cyclicity sign" -X2c
14 gmt makecpt -Cjet -Ww -H > w.cpt
15 gmt colorbar -Cjet -Dx0c/0+jBC+w15c+e+v+n -B -X1.5c -Y3c
16 gmt colorbar -Cjet -Dx0c/0+jBC+w15c+e+v+nBAD -B -X2c
17 gmt colorbar -Cjet -Dx0c/0+jBC+w15c+e+v+n-+r -B -X2c
18 gmt colorbar -Cjet -Dx0c/0+jBC+w15c+e+v+nMissing+r -B -X2c
19 gmt colorbar -Cw.cpt -Dx0c/0+jBC+w15c+v+n-+r -B -X2c
20 gmt colorbar -Cjet -Dx0c/0+jBC+w15c+e+v+N -B -X2c
21 gmt colorbar -Cjet -Dx0c/0+jBC+w15c+e+v+NBAD -B -X2c
22 gmt colorbar -Cjet -Dx0c/0+jBC+w15c+e+v+N-+r -B -X2c
23 gmt colorbar -Cw.cpt -Dx0c/0+jBC+w15c+v+N!!!+r -B -X2c
24 gmt end show