#!/bin/csh

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

psbasemap -JX6/1.5 \
-R1994.5/2004/-40/20 \
-G230/225/200 -Y5.25 -P -K \
-Bf0.25a1/f10a20:"North (mm)":WeSn  \
> pack.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> pack.ps
1994.6124	-32.8	7.1
1994.6234	-25.3	6.6
2000.7043	-9.5	7.2
2000.7070	-9.5	6.8
2003.6366	13.0	7.3
2003.6393	5.0	7.0
2003.6421	3.4	6.8
2003.6448	4.6	6.5
2003.6475	3.1	6.3
EOT

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.06 -G255/0/0 -O \
-K >> pack.ps
1994.6124	-32.8	7.1
1994.6234	-25.3	6.6
2000.7043	-9.5	7.2
2000.7070	-9.5	6.8
2003.6366	13.0	7.3
2003.6393	5.0	7.0
2003.6421	3.4	6.8
2003.6448	4.6	6.5
2003.6475	3.1	6.3
EOT

#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> pack.ps
SBreak	Segment0	Comp0
 1994.6124	 -29.7695	Segment0	Comp0
 2003.6475	   4.3153	Segment0	Comp0
EOT

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

psbasemap -JX6/1.5 \
-R1994.5/2004/-40/10 \
-G230/225/200 -Y-1.75 -P -K \
-Bf0.25a1/f10a20:"East (mm)":WeSn  \
-O >> pack.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> pack.ps
1994.6124	-22.8	8.0
1994.6234	-34.1	7.2
2000.7043	-9.1	7.8
2000.7070	-3.6	7.3
2003.6366	-0.2	9.8
2003.6393	3.6	8.7
2003.6421	2.7	8.0
2003.6448	0.3	7.5
2003.6475	-0.4	7.4
EOT

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.06 -G255/0/0 -O \
-K >> pack.ps
1994.6124	-22.8	8.0
1994.6234	-34.1	7.2
2000.7043	-9.1	7.8
2000.7070	-3.6	7.3
2003.6366	-0.2	9.8
2003.6393	3.6	8.7
2003.6421	2.7	8.0
2003.6448	0.3	7.5
2003.6475	-0.4	7.4
EOT

#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> pack.ps
SBreak	Segment0	Comp1
 1994.6124	 -27.8722	Segment0	Comp1
 2003.6475	   1.5469	Segment0	Comp1
EOT

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

psbasemap -JX6/1.5 \
-R1994.5/2004/-40/20 \
-G230/225/200 -Y-1.75 -P -K \
-Bf0.25a1/f10a20:"Up (mm)":WeSn  \
-O >> pack.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> pack.ps
1994.6124	-2.5	22.9
1994.6234	17.0	21.9
2000.7043	-29.3	23.5
2000.7070	-31.4	21.5
2003.6366	-34.6	23.5
2003.6393	3.3	26.4
2003.6421	6.4	23.6
2003.6448	8.1	22.3
2003.6475	1.5	22.8
EOT

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.06 -G255/0/0 -O \
-K >> pack.ps
1994.6124	-2.5	22.9
1994.6234	17.0	21.9
2000.7043	-29.3	23.5
2000.7070	-31.4	21.5
2003.6366	-34.6	23.5
2003.6393	3.3	26.4
2003.6421	6.4	23.6
2003.6448	8.1	22.3
2003.6475	1.5	22.8
EOT

#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
>> pack.ps
SBreak	Segment0	Comp2
 1994.6124	  -3.3912	Segment0	Comp2
 2003.6475	   0.4399	Segment0	Comp2
EOT