On Mon, 17 Dec 2012, Qi Shi wrote:
thanks. but i want to use console, how can i plot a function curve?
Something like this:
<hansl>
set echo off
sprintf fname "%s/tmp.plt", dotdir
outfile @fname --write
print "plot sin(x)"
outfile --close
gnuplot --input="@fname" --output=display
</hansl>
Allin Cottrell
On Sun, Dec 16, 2012 at 10:16 PM, Allin Cottrell
<cottrell(a)wfu.edu> wrote:
> On Sun, 16 Dec 2012, Qi Shi wrote:
>
>> how to plot a function in gretl, such as y=2+x+x^2?
>
> See /Tools/Plot a curve. In the box that appears, type the
> right-hand side (that is, skip the "y="):
>
> 2+x+x^2
>
> You want something that is a valid argument to the "plot" command in
> gnuplot.