Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!cunixb.cc.columbia.edu!mjf From: mjf@cunixb.cc.columbia.edu (Michael J Flory) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Problem printing/GNUPLOT Summary: Problem printing to Epson-compatible printer Message-ID: <1991Jan30.033630.30293@cunixf.cc.columbia.edu> Date: 30 Jan 91 03:36:30 GMT References: <91024.131351WXS103@psuvm.psu.edu> <8338@monu1.cc.monash.oz> Sender: news@cunixf.cc.columbia.edu (The Daily News) Organization: Columbia University Lines: 25 On the subject of printing to Epson-compatible printers with GNUPLOT, I'll toss in a caution. I have a Panasonic, supposedly compatible with Epson escape-sequences. I don't know the Epson line, though the lx-800 sounds like it might be 24-pin(?), and my KX-P1091 is 9-pin, but I thought I'd give it a whirl anyway. I got graphs that looked correct, except that the printer was advancing 1/6 inch, and not 1/9 inch, with each line. I traced the problem to a line in the epson.trm file that tries to set the line spacing to 1/9 (8/72) inch: fprintf(outfile,"\033A\010") and a footnote in the printer manual that points out that ESC+2 must be added to ESC+A+n (that is, octal 33, "A", octal 10 should be followed by octal 33, octal 62) to activate the n/72 inch line spacing when in "IBM PC Matrix/ Graphic Printer Mode." I haven't been able to recompile GNUPLOT with this change, as I don't have very up-to-date compilers -- I never got beyond Lesson 1 in the C primer :-) -- but I would suspect that this would cure the glitch. As it is, I binary-edited the output file (wishing that I had the binary editor everyone is seeking that will allow changes to file length) and managed to get good output. From the epson.trm file it looked as if I should have been able to set my term type to PROPRINTER, incidentally, and avoid the problem, as the PROPRINTER definition sends out an escape sequence for each line, but the executable that I have doesn't support PROPRINTER (I wonder if the epson.trm in the sources was really the one used to compile the .exe). -- Michael Flory (mjf@cunixb.cc.columbia.edu)