#!/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:"HOPE North (mm)":WeSn  \
> hope.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> hope.ps
2001.6599	0.4	7.3
2001.6818	0.7	7.7
2005.6655	1.1	7.4
2005.6847	-2.3	6.2
EOT

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

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> hope.ps
2001.6599	0.4	7.3
2001.6818	0.7	7.7
2005.6655	1.1	7.4
2005.6847	-2.3	6.2
EOT

#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> hope.ps
SBreak	Segment0	Comp0
 2001.6599	   0.5665	Segment0	Comp0
 2005.6847	  -0.5660	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:"HOPE East (mm)":WeSn  \
-O >> hope.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> hope.ps
2001.6599	7.5	8.9
2001.6818	-6.4	9.0
2005.6655	0.7	9.9
2005.6847	-4.5	7.0
EOT

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

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> hope.ps
2001.6599	7.5	8.9
2001.6818	-6.4	9.0
2005.6655	0.7	9.9
2005.6847	-4.5	7.0
EOT

#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> hope.ps
SBreak	Segment0	Comp1
 2001.6599	   1.8757	Segment0	Comp1
 2005.6847	  -1.6082	Segment0	Comp1
EOT

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

psbasemap -JX6/1.5 \
-R2001.5/2006/-20/20 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f5a10:"HOPE Up (mm)":WeSn  \
-O >> hope.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> hope.ps
2001.6599	2.5	23.7
2001.6818	17.8	25.8
2005.6655	-6.6	24.9
2005.6847	-10.3	19.0
EOT

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

#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> hope.ps
2001.6599	2.5	23.7
2001.6818	17.8	25.8
2005.6655	-6.6	24.9
2005.6847	-10.3	19.0
EOT

#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
>> hope.ps
SBreak	Segment0	Comp2
 2001.6599	  10.1905	Segment0	Comp2
 2005.6847	  -8.4190	Segment0	Comp2
EOT