#!/bin/csh

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

psbasemap -JX6/1.5 \
-R2001.5/2006/-10/10 \
-G236/232/211 -Y5.25 -P -K \
-Bf0.25a1/f5a10:"BECK North (mm)":WeSn  \
> beck.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> beck.ps
2001.6599	-7.8	6.7
2001.6791	-3.9	6.8
2005.6710	7.9	6.3
2005.6819	0.8	7.0
EOT


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


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> beck.ps
2001.6599	-7.8	6.7
2001.6791	-3.9	6.8
2005.6710	7.9	6.3
2005.6819	0.8	7.0
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> beck.ps
SBreak	Segment0	Comp0
 2001.6599	  -5.7551	Segment0	Comp0
 2005.6819	   4.8131	Segment0	Comp0
EOT


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

psbasemap -JX6/1.5 \
-R2001.5/2006/-10/10 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f5a10:"BECK East (mm)":WeSn  \
-O >> beck.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> beck.ps
2001.6599	5.5	9.1
2001.6791	-4.5	7.6
2005.6710	-4.5	6.1
2005.6819	4.2	6.8
EOT


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


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> beck.ps
2001.6599	5.5	9.1
2001.6791	-4.5	7.6
2005.6710	-4.5	6.1
2005.6819	4.2	6.8
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> beck.ps
SBreak	Segment0	Comp1
 2001.6599	   0.8916	Segment0	Comp1
 2005.6819	  -0.2650	Segment0	Comp1
EOT


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

psbasemap -JX6/1.5 \
-R2001.5/2006/-30/30 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f10a20:"BECK Up (mm)":WeSn  \
-O >> beck.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> beck.ps
2001.6599	-2.4	21.7
2001.6791	28.0	21.8
2005.6710	-20.8	17.7
2005.6819	2.5	18.8
EOT


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


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> beck.ps
2001.6599	-2.4	21.7
2001.6791	28.0	21.8
2005.6710	-20.8	17.7
2005.6819	2.5	18.8
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
>> beck.ps
SBreak	Segment0	Comp2
 2001.6599	  13.8113	Segment0	Comp2
 2005.6819	 -10.5408	Segment0	Comp2
EOT