Hi Marco,
in the GUI it's possible on a per-variable basis. In a script, I guess
not. (Maybe it should?)
cheers
sven
Am 10.12.2025 um 13:46 schrieb MARCO TEDESCHI:
Dear all,
I would like to ask whether it is possible, within the gnuplot command
in Gretl, to assign multiple series to the secondary y-axis. In the
example script below, the aim is to plot both heating and gasoline
prices on the y2 axis. I tried using a list of variables in the y2
option, but it does not work as expected. Is there a way to specify
more than one series for y2 using the gnuplot command? Any suggestions
or workarounds would be greatly appreciated.
Best regards,
Marco
EXAMPLE SCRIPT:
include yahoo_get.gfn
nulldata 1500
setobs 5 2018-01-01
series wti = yahoo_price("CL=F",1)
series brent = yahoo_price("BZ=F",1)
series gasoline = yahoo_price("RB=F",1)
series heating = yahoo_price("HO=F",1)
delete index
list Energy = wti brent gasoline heating
list y2 = gasoline heating
gnuplot Energy --time-series --with-lines --output=display
--y2axis=gasoline
_______________________________________________
Gretl-users mailing list --gretl-users(a)gretlml.univpm.it
To unsubscribe send an email togretl-users-leave(a)gretlml.univpm.it
Website:https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/