Tektronix files from plotutils https://www.gnu.org/software/plotutils/ This is my poor code for converting the Tektronix plot files to the format my fortran program uses to plotting on Calcomp plotter. Note it has fixed sized arrays. Likely will blow up if too many vectors. Also has lots of stuff left over from debugging and playing that makes code annoying to read. Usage ./convert_delta < /tmp/tek2plot/usmap.tek > /tmp/usmap.1 Orig length 120217, pen ups 67 New length 78161, pen ups 65 num segs 138 The code attempts to sort vectors to reduce pen up motion. New length is total pen motion after optimization.