#!/bin/csh

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

psbasemap -JX6/1.5 \
-R2001.5/2006/-30/30 \
-G236/232/211 -Y5.25 -P -K \
-Bf0.25a1/f10a20:"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	19.9	6.7
2001.6791	23.5	6.8
2005.6710	-15.2	6.3
2005.6819	-22.3	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	19.9	6.7
2001.6791	23.5	6.8
2005.6710	-15.2	6.3
2005.6819	-22.3	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	  21.9441	Segment0	Comp0
 2005.6819	 -18.3525	Segment0	Comp0
EOT


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

psbasemap -JX6/1.5 \
-R2001.5/2006/-20/50 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f10a20:"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	48.3	9.1
2001.6791	38.0	7.6
2005.6710	-17.1	6.1
2005.6819	-8.5	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	48.3	9.1
2001.6791	38.0	7.6
2005.6710	-17.1	6.1
2005.6819	-8.5	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	  43.7157	Segment0	Comp1
 2005.6819	 -12.9935	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.3	21.7
2001.6791	28.2	21.8
2005.6710	-20.9	17.7
2005.6819	2.4	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.3	21.7
2001.6791	28.2	21.8
2005.6710	-20.9	17.7
2005.6819	2.4	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.9216	Segment0	Comp2
 2005.6819	 -10.6250	Segment0	Comp2
EOT