1#!/usr/bin/env bash 2# Test that polygons with holes plot correctly regardless of handedness 3# for both geo and Cartesian plots 4cat << EOF > quads.dat 5> -Gred CCW 60 0 75 0 85 10 90 10 100 0 11> -Ph CW 122 1 132 3 144 3 154 1 162 1 17> -Ph CCW 182 4 194 4 204 6 212 6 222 4 23> -Ph CCW origin TopLeft 242 9 252 7 264 7 274 9 282 9 29> CW -Gblue 305 0 315 10 3210 10 3310 0 345 0 35> -Ph CW 367 1 377 3 389 3 399 1 407 1 41> -Ph CCW 427 4 439 4 449 6 457 6 467 4 47EOF 48gmt begin polyholes ps 49 gmt plot quads.dat -JX10c -Ba2f1 -BWSen -R-0.5/10.5/-0.5/10.5 -Gred -W1p 50 gmt plot quads.dat -JM10c -Ba2f1 -BWSen -Gred -W1p -Y12c 51gmt end show 52