#!/bin/csh

#  Draw basemap
#  ------------
gmtset ANOT_FONT Helvetica LABEL_FONT Helvetica

psbasemap -JX6/1.5 \
-R1999.5/2000/-10/10 \
-G230/225/200 -Y5.25 -P -K \
-Bf0.25a1/f5a10:"North (mm)":WeSn  \
> whit.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> whit.ps
1999.7871	-0.1	6.8
1999.7898	2.0	7.2
1999.7926	2.2	4.4
1999.7953	-0.5	4.2
1999.7980	-4.9	6.6
1999.8008	0.3	6.2
1999.8035	0.2	9.0
EOT


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.06 -G255/0/0 -O \
-K >> whit.ps
1999.7871	-0.1	6.8
1999.7898	2.0	7.2
1999.7926	2.2	4.4
1999.7953	-0.5	4.2
1999.7980	-4.9	6.6
1999.8008	0.3	6.2
1999.8035	0.2	9.0
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> whit.ps
SBreak	Segment0	Comp0
 1999.7871	   0.0000	Segment0	Comp0
 1999.8035	   0.0000	Segment0	Comp0
EOT


#  Draw basemap
#  ------------
gmtset ANOT_FONT Helvetica LABEL_FONT Helvetica

psbasemap -JX6/1.5 \
-R1999.5/2000/-20/10 \
-G230/225/200 -Y-1.75 -P -K \
-Bf0.25a1/f5a10:"East (mm)":WeSn  \
-O >> whit.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> whit.ps
1999.7871	-12.8	8.7
1999.7898	1.4	9.6
1999.7926	4.2	6.7
1999.7953	5.8	6.1
1999.7980	-4.4	9.2
1999.8008	-3.2	8.7
1999.8035	1.5	12.5
EOT


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.06 -G255/0/0 -O \
-K >> whit.ps
1999.7871	-12.8	8.7
1999.7898	1.4	9.6
1999.7926	4.2	6.7
1999.7953	5.8	6.1
1999.7980	-4.4	9.2
1999.8008	-3.2	8.7
1999.8035	1.5	12.5
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> whit.ps
SBreak	Segment0	Comp1
 1999.7871	   0.0000	Segment0	Comp1
 1999.8035	   0.0000	Segment0	Comp1
EOT


#  Draw basemap
#  ------------
gmtset ANOT_FONT Helvetica LABEL_FONT Helvetica

psbasemap -JX6/1.5 \
-R1999.5/2000/-20/20 \
-G230/225/200 -Y-1.75 -P -K \
-Bf0.25a1/f5a10:"Up (mm)":WeSn  \
-O >> whit.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> whit.ps
1999.7871	-11.8	19.3
1999.7898	1.4	23.0
1999.7926	3.6	12.5
1999.7953	-8.9	12.7
1999.7980	17.1	19.8
1999.8008	7.2	18.8
1999.8035	-5.0	29.0
EOT


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.06 -G255/0/0 -O \
-K >> whit.ps
1999.7871	-11.8	19.3
1999.7898	1.4	23.0
1999.7926	3.6	12.5
1999.7953	-8.9	12.7
1999.7980	17.1	19.8
1999.8008	7.2	18.8
1999.8035	-5.0	29.0
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
>> whit.ps
SBreak	Segment0	Comp2
 1999.7871	   0.0000	Segment0	Comp2
 1999.8035	   0.0000	Segment0	Comp2
EOT