On Mon, 16 May 2022, Ekkehart Schlicht wrote:
Hi,
I have been unable to figure out how to plot time series with lines and others with dots
programmatically. (I know how to edit a plot manually with the plot editor, but I would
like to have an
an automatic solution with Hansl scripting for a simulation project.)
Here is what I can do with Gretl, using the attached time-series data. example.gdt. By
using the GUI with
View->Graph specified vars->Time-series plot ... and selecting all variables I get
the following graph:
[IMAGE]
Using the plot editor I can change the appearance of orig_slope to
[IMAGE]
Can this be done by scripting, and if so, how?
does this help?
<hansl>
nulldata 128
setobs 1 1 --time-series
m = cum(normal())
x = m + normal()
list P = x m
plot P
option time-series
literal set linetype 1 pt 7 ps 0.5
option with-lines=m
end plot --output=display
</hansl>
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------