# Created by Igor Markov; Feb 28, 2001 # This script for gnuplot draws yachts, sharks, their convex hulls # and the shortest distance between the two convex hulls (which is # non-trivial since the hulls do not intersect). # Finding the shortest distance is not needed in project 2 set output "out.eps" set terminal postscript eps color 24 set arrow from 12.6,12.9 to 13.17,12.3 set arrow from 13.17,12.3 to 12.6,12.9 set label "shortest distance" at 13,12.7 plot [9.7:21] [9.7:15.3] '-' title "yachts" w p 3, '-' title "convex hull of yachts" w l 2, '-' title "sharks" w p 7, '-' title "convex hull of sharks" w l 4 10 10 20 10 18 13 17.8 12.5 14.5 13.25 15 13 18 11 18.5 10.3 13.7 11.7 11 10.5 END 10 10 20 10 18 13 14.5 13.25 10 10 END 11 15 11 14.1 11.5 14.0 11.8 13.7 11.3 13.8 12.6 12.9 12.2 13 12.4 13.2 12.3 14.5 END 11 15 11 14.1 11.3 13.8 12.2 13 12.6 12.9 12.3 14.5 11 15 END pause -1 " The picture was saved to out.eps\n Press any key to finish ..."