From octave-sources-request at bevo dot che dot wisc dot edu Mon Nov 5 12:45:36 2001 Subject: Patch for 'print' in octave-forge 2001-11-02 From: Obed Sands To: octave-sources at bevo dot che dot wisc dot edu Cc: pkienzle at d120203 dot ncnr dot nist dot gov, o.s.sands@ieee.org Date: Mon, 05 Nov 2001 13:45:30 -0500 In the existing version of 'print.m' in octave-forge- 2001-11-02 you get the postscript code generated by gnuplot barfed to your terminal when you are trying to write postscript to a file. The following patch is an attempt to address this issue. The main change is a deletion of the trailing "\" from the "terminal_default" variable. Note that I'm using the gnuplot from the CVS sources at sourceforge and thus the problem may be due to some change in the behaviour of `gget' under gnuplot 2.8g.0. I'm not sure as I only started using the octave-forge version of 'print' recently. Other, possibly relevant, info: SuSE Linux 7.2, Kernel 2.4.4-4GB Octave 2.1.34 Enjoy!! Scott Sands --- /usr/local/scratch/octave-forge-2001.11.02/main/plot/print.m Mon Nov 5 12:57:42 2001 +++ print.m Mon Nov 5 12:57:10 2001 at @ -293,10 +293,10 @@ if isempty (origout) gset output; else - eval (sprintf ("gset output %s;", origout)); + eval (sprintf ("gset output \"%s\";", origout)); end if ! isempty (terminal_default) - eval (sprintf ("gset terminal %s;", terminal_default)); + eval (sprintf ("gset terminal %s;", terminal_default(1:length(terminal_default)-1))); endif eval (sprintf ("gset terminal %s;", origterm)); O. Scott Sands, Ph.D. Communications System Analyst Space Communications Program NASA Glenn Research Center MS 54-6 21000 Brookpark Rd. Cleveland, OH 44135 Voice: (216) 433-2607 Fax: (216) 433-6371 mailto:Obed dot S dot Sands at grc dot nasa dot gov