[Top][All Lists]

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

Re: what's wrong with the plot?

From: Stefan van der Walt
Subject: Re: what's wrong with the plot?
Date: Tue, 5 Apr 2005 12:23:59 +0200
User-agent: Mutt/1.5.6+20040907i

On Mon, Apr 04, 2005 at 12:26:42PM +0200, Gunnar wrote:
> Hello.
> I'm using octave in linux, and I have created a plot with these commands
> y=[97 89 67 62 50 41 35 25];
> x=1:8;
> koeff=polyfit(x,log(y),1);
> realkoeff=exp(koeff)
> yp=polyval(koeff,x);
> gset terminal postscript eps
> gset output 'antal2004.eps'
> plot(x,y,';verkligt antal;',x,exp(yp),';exponentiellt bortfall;');
> The result "antal2004.eps" looks fine in ghostview, it also looks fine when I 
> preview the image in LyX (the latex "frontend" which I'm using to write a 
> paper). N.B. this preview is the preview inside of LyX, not the 

If you are using LyX, why not try Gnuplot's xfig format?  I export all
my graphs into xfig-format, and then use LyX's "Insert -> External ->
XFig" command.  While you cannot see the graphics directly in LyX, the
output results are great.  Also, you can edit labels on axes
etc. using xfig.


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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