help-octave
[Top][All Lists]
Advanced

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

Re: Gnuplot scripts as output?


From: Martin Helm
Subject: Re: Gnuplot scripts as output?
Date: Thu, 1 Apr 2010 13:49:57 +0200
User-agent: KMail/1.12.4 (Linux/2.6.31.12-0.2-desktop; KDE/4.3.5; x86_64; ; )

Am Donnerstag, 1. April 2010 13:02:49 schrieb Tribo Laboy:
> 
> Hello!
> 
> I am also quite interested in the possibility to reuse gnuplot files
> created by octave.
> 
> On my windows version of Octave 3.2.3-2 from source-forge coming with
> gnuplot  4.3.0-2009-07-08 CVS patchlevel 0 octave-mingw32 I do the
> following:
> 
> x = 0:0.1:16; y = sin(x);
> plot(x,y)
> drawnow ("windows", "NUL", false, "gnuplotstream.plt")
> 
> as a result I get a "gnuplotstream.plt" file in the current dir, but
> when trying to open it in gnuplot, it does nothing. No error, nothing.
> I open the file in a text editor a found that some of the data is
> binary. Could that be the problem?
> 
> I would appreciate if someone sheds some light on this. Does it work
> on Linux and how to make it work on Win?
> 
> Regards

I cannot tell you how to make it work with windows. I only wanted to tell you 
that it works well in linux.

tested with opensuse 11.2 64 bit and octave 3.2.4, gnuplot 4.2 p5

of course I had to set terminal to x11.

x = 0:0.1:16; y = sin(x);
plot(x,y)
drawnow ("X11", "NUL", false, "gnuplotstream.plt")

and in gnuplot

   load "gnuplotstream.plt"

- mh


reply via email to

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