From help-octave-request at bevo dot che dot wisc dot edu Fri May 16 07:45:59 2003 Subject: Re: about gplot From: "John B. Thoo" To: myong Cc: octave Date: Fri, 16 May 2003 05:45:01 -0700 On Friday, May 16, 2003, at 02:44 AM, myong wrote: > Hello! > > How can I save the picture that generate from command "gplot" in > the octave? Hi. Here is what I use. % A. S. Hodel % Assoc. Prof, Dept. Elect & Comp Eng % Auburn University, AL 36849-5201 % hodelas at auburn dot edu function printeps(filename) % function printeps(filename) % replot screen plot to a file % inputs: % filename: string: % no argument checking done - this means YOU mark! gset terminal postscript eps color eval(sprintf("gset output '%s'", filename)); replot #gset terminal x11 closeplot endfunction ---John. ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------