#!/bin/csh

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

psbasemap -JX6/1.5 \
-R1998.5/1999/-10/10 \
-G236/232/211 -Y5.25 -P -K \
-Bf0.25a1/f5a10:"TURN North (mm)":WeSn  \
> turn.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> turn.ps
1998.6947	0.5	6.9
1998.7029	4.7	6.4
1998.7056	-5.7	7.0
EOT


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


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> turn.ps
1998.6947	0.5	6.9
1998.7029	4.7	6.4
1998.7056	-5.7	7.0
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> turn.ps
SBreak	Segment0	Comp0
 1998.6947	   0.0000	Segment0	Comp0
 1998.7056	   0.0000	Segment0	Comp0
EOT


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

psbasemap -JX6/1.5 \
-R1998.5/1999/-10/10 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f5a10:"TURN East (mm)":WeSn  \
-O >> turn.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> turn.ps
1998.6947	3.3	7.0
1998.7029	-2.0	6.8
1998.7056	-1.8	7.1
EOT


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


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> turn.ps
1998.6947	3.3	7.0
1998.7029	-2.0	6.8
1998.7056	-1.8	7.1
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> turn.ps
SBreak	Segment0	Comp1
 1998.6947	   0.0000	Segment0	Comp1
 1998.7056	   0.0000	Segment0	Comp1
EOT


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

psbasemap -JX6/1.5 \
-R1998.5/1999/-20/10 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f5a10:"TURN Up (mm)":WeSn  \
-O >> turn.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> turn.ps
1998.6947	0.8	22.2
1998.7029	-11.0	21.1
1998.7056	9.5	22.6
EOT


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


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> turn.ps
1998.6947	0.8	22.2
1998.7029	-11.0	21.1
1998.7056	9.5	22.6
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
>> turn.ps
SBreak	Segment0	Comp2
 1998.6947	   0.0000	Segment0	Comp2
 1998.7056	   0.0000	Segment0	Comp2
EOT