help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Plotting data into file


From: Michael Kopp
Subject: Plotting data into file
Date: Mon, 13 Jun 2005 16:57:40 +0200
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

Hi all,

I am about writing a script which automatically plots data into eps-files. I am using "gset outpout <filename>" to designate the output file. However, this seems to work only if I give the name ouf the outputfile directly as a string, but not if I give it as an octave string variable. Here is an example:

str = "test.eps";
gset terminal postscript eps;
gset output str;                % this does not work
plot((1:10)', (1:10)'/2);
gset output "anothertest.eps";        % this works
plot((1:10)', (1:10)'/2);
gset terminal X11;
gset output;

Any suggestions?

TIA,

Michael.




-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]