#!/bin/csh

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

psbasemap -JX6/1.5 \
-R1999.5/2009/-50/70 \
-G236/232/211 -Y5.25 -P -K \
-Bf0.25a1/f20a40:"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	60.6	6.8
1999.7214	31.3	7.3
2003.8283	-16.1	10.3
2003.8311	-17.6	8.0
2008.7756	-40.9	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	60.6	6.8
1999.7214	31.3	7.3
2003.8283	-16.1	10.3
2003.8311	-17.6	8.0
2008.7756	-40.9	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	  40.8954	Segment0	Comp0
 2008.7756	 -46.7277	Segment0	Comp0
EOT

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

psbasemap -JX6/1.5 \
-R1999.5/2009/-60/60 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f20a40:"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	23.1	7.0
1999.7214	58.3	7.8
2003.8283	12.0	11.4
2003.8311	9.8	8.6
2008.7756	-51.0	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	23.1	7.0
1999.7214	58.3	7.8
2003.8283	12.0	11.4
2003.8311	9.8	8.6
2008.7756	-51.0	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	  41.8574	Segment0	Comp1
 2008.7756	 -48.0554	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.3	21.0
1999.7214	-10.2	24.0
2003.8283	47.0	31.1
2003.8311	15.5	23.5
2008.7756	-28.9	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.3	21.0
1999.7214	-10.2	24.0
2003.8283	47.0	31.1
2003.8311	15.5	23.5
2008.7756	-28.9	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.3358	Segment0	Comp2
 2008.7756	 -17.0977	Segment0	Comp2
EOT