Debian Codegraph @

test/psscale/colorbar-nans-h.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 # Horizontal colorbar tests
11
12
13 gmt begin colorbar-nans-h
14 gmt basemap -R0/21/0/24 -Jx1c -B0 -B+t"Horizontal colorbar NaN placement and annotation(s)"+s"Mixed with back- and foreground colors and cyclicity sign" -X2c
15 gmt makecpt -Cjet -Ww -H > w.cpt
16 gmt colorbar -Cjet -Dx10c/0+jBC+w15c+e+h+n -B -Y1.5c -X1c
17 gmt colorbar -Cjet -Dx10c/0+jBC+w15c+e+h+nBAD -B -Y2.5c
18 gmt colorbar -Cjet -Dx10c/0+jBC+w15c+e+h+n-+r -B -Y2.5c
19 gmt colorbar -Cjet -Dx10c/0+jBC+w15c+e+h+nMissing+r -B -Y2.5c
20 gmt colorbar -Cw.cpt -Dx10c/0+jBC+w15c+h+n-+r -B -Y2.5c
21 gmt colorbar -Cjet -Dx10c/0+jBC+w15c+e+h+N -B -Y2.5c
22 gmt colorbar -Cjet -Dx10c/0+jBC+w15c+e+h+NBAD -B -Y2.5c
23 gmt colorbar -Cjet -Dx10c/0+jBC+w15c+e+h+N-+r -B -Y2.5c
24 gmt colorbar -Cw.cpt -Dx10c/0+jBC+w15c+h+N!!!+r -B -Y2.5c
25 gmt end show