[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about gplot
From: |
John B. Thoo |
Subject: |
Re: about gplot |
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
% address@hidden
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
-------------------------------------------------------------