#!/bin/csh

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

psbasemap -JX6/1.5 \
-R1994.5/2004/-20/30 \
-G236/232/211 -Y5.25 -P -K \
-Bf0.25a1/f10a20:"PACK 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	-11.3	11.7
1994.6234	-17.7	8.2
2000.7043	7.0	8.0
2000.7070	7.9	7.5
2003.6366	22.6	7.8
EOT

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G0/0/255 -O \
-K >> pack.ps
EOT

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> pack.ps
1994.6124	-11.3	11.7
1994.6234	-17.7	8.2
2000.7043	7.0	8.0
2000.7070	7.9	7.5
2003.6366	22.6	7.8
EOT

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

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

psbasemap -JX6/1.5 \
-R1994.5/2004/-30/20 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f10a20:"PACK 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	-10.2	10.7
1994.6234	-23.2	8.0
2000.7043	4.1	7.4
2000.7070	3.0	6.8
2003.6366	13.3	6.6
EOT

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G0/0/255 -O \
-K >> pack.ps
EOT

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> pack.ps
1994.6124	-10.2	10.7
1994.6234	-23.2	8.0
2000.7043	4.1	7.4
2000.7070	3.0	6.8
2003.6366	13.3	6.6
EOT

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

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

psbasemap -JX6/1.5 \
-R1994.5/2004/-30/60 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f20a40:"PACK 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.8	42.2
1994.6234	52.2	32.4
2000.7043	-20.0	29.5
2000.7070	-20.1	27.0
2003.6366	-17.3	27.0
EOT

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G0/0/255 -O \
-K >> pack.ps
EOT

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> pack.ps
1994.6124	2.8	42.2
1994.6234	52.2	32.4
2000.7043	-20.0	29.5
2000.7070	-20.1	27.0
2003.6366	-17.3	27.0
EOT

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