#!/bin/csh

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

psbasemap -JX6/1.5 \
-R1999.5/2009/-30/30 \
-G236/232/211 -Y5.25 -P -K \
-Bf0.25a1/f10a20:"WALT North (mm)":WeSn  \
> walt.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> walt.ps
1999.6913	2.6	6.8
1999.7214	-26.4	7.3
2003.8283	-17.5	10.3
2003.8311	-19.0	8.0
2008.7756	25.4	5.3
EOT

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

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> walt.ps
1999.6913	2.6	6.8
1999.7214	-26.4	7.3
2003.8283	-17.5	10.3
2003.8311	-19.0	8.0
2008.7756	25.4	5.3
EOT

#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> walt.ps
SBreak	Segment0	Comp0
 1999.6913	 -17.1478	Segment0	Comp0
 2008.7756	  19.5933	Segment0	Comp0
EOT

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

psbasemap -JX6/1.5 \
-R1999.5/2009/-40/20 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f10a20:"WALT East (mm)":WeSn  \
-O >> walt.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> walt.ps
1999.6913	-31.2	7.0
1999.7214	4.5	7.8
2003.8283	10.8	11.4
2003.8311	8.7	8.6
2008.7756	11.4	5.5
EOT

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

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> walt.ps
1999.6913	-31.2	7.0
1999.7214	4.5	7.8
2003.8283	10.8	11.4
2003.8311	8.7	8.6
2008.7756	11.4	5.5
EOT

#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> walt.ps
SBreak	Segment0	Comp1
 1999.6913	 -12.4359	Segment0	Comp1
 2008.7756	  14.2773	Segment0	Comp1
EOT

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

psbasemap -JX6/1.5 \
-R1999.5/2009/-30/50 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f10a20:"WALT Up (mm)":WeSn  \
-O >> walt.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> walt.ps
1999.6913	12.2	21.0
1999.7214	-10.4	24.0
2003.8283	47.0	31.1
2003.8311	15.5	23.5
2008.7756	-28.6	18.2
EOT

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

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> walt.ps
1999.6913	12.2	21.0
1999.7214	-10.4	24.0
2003.8283	47.0	31.1
2003.8311	15.5	23.5
2008.7756	-28.6	18.2
EOT

#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
>> walt.ps
SBreak	Segment0	Comp2
 1999.6913	  13.1751	Segment0	Comp2
 2008.7756	 -16.8917	Segment0	Comp2
EOT