#!/bin/sh # # drft06rr_bar - makes a thin horizontal separator for the web pages # in the form of a string of gray circles with sizes determined by a # cosine. # # Paul Wessel, 20-NOV-2001 if [ -f drft06rr/drft06rr.bar.gif ] && [ $# -eq 0 ]; then echo "drft06rr_bar: bar already exist. Use -f to force recreation" exit fi # Make up an x,y file with a cosine signal on top of a constant. # Col3 is the symbol size, col 4 is the z value used to assign color gmtmath -T0/1/0.008 -N4/0 T PI 2 MUL MUL 4 MUL COS -C1 0 MUL -C3 0.02 MUL ABS 0.03 ADD = t.d makecpt -Cgray -T-1/2/0.1 -Z > t.cpt psxy -R0/1/-0.01/0.01 -Jx6.5 -Sc -Ct.cpt -N t.d -P -X1 -Y1 > drft06rr.bar.ps convert -density 110x110 -crop 0x0 drft06rr.bar.ps drft06rr.bar.gif mv -f drft06rr.bar.gif drft06rr xv drft06rr/drft06rr.bar.gif & rm -f t.cpt t.d drft06rr.bar.ps