On Wed, 28 Jan 2009, yinung at Gmail wrote:
>>Either use the GUI plot editor, or exploit the
>> { extra gnuplot commands; }
Yes, to use GUI to plot the graph with different linetypes (as well as
different Y axes) is OK.
The gretl manual does not provide the example I need. So I visit
http://www.gnuplot.info/docs/node100.html to try the gnuplot commands.
They generally works. But I found if I use the command line in the
gretl console (for example, using the below script with djclose.gdt)
series r=ldiff(djclose)
gnuplot r djclose { plot '-' using 1:($2) axes x1y2 title "Returns
(right)" w lines, '-' using 1:($2) title "djclose (left)" w
linespoints;} --time-series
The graph comes out as expected.
However, this graph cannot be edited...
The GUI graph editor in gretl is designed to work with graphs that
are automatically generated by gretl itself. It does not pretend
to be able to handle all possible syntactically valid gnuplot
files.
If you want to customize a plot in a way that is not supported in
the GUI graph editor, you are advised to follow the suggestions in
the Gretl User's Guide. That is:
* Generate a plot in the GUI. Click and "save to session as
icon".
* Go to View/Icon view and locate the icon representing your
graph.
* Right-click on the icon and select "Edit plot commands".
Now you can do what you want with the plot specification, and send
the result directly to gnuplot with the "Execute" icon.
Allin.