On Tue, Jan 23, 2024 at 1:05 PM Sven Schreiber
<sven.schrei...@fu-berlin.de> wrote:
>
> what I'm asking is maybe best explained by example, see the script
> below, which calls R. Is something like that possible with gnuplot (and
> hence more directly linkable to gretl) ?
>
> <hansl>
> # The following produces a dynamic browser-based plot
> # with a slider at the bottom to choose the range
>
> open denmark
> foreign language=R --send-data
>
> library(dygraphs)    # in turn depends on "magrittr"
> moneyincome <- cbind(gretldata[,"LRM"], gretldata[,"LRY"])
> dygraph(moneyincome) %>% dyRangeSelector()
> end foreign
> </hansl>

Gretl is coded in C, which is Turing complete, and its GUI is based on
GTK, which includes a slider widget (GtkScale), so the answer is Yes,
it's possible. All you have to do is design a GUI dialog that revises
the sample range in a gnuplot script via a call to the GtkScale API
and calls for redrawing of the plot accordingly.

Allin
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/

Reply via email to