Am 23.01.2024 um 21:40 schrieb Cottrell, Allin:
On Tue, Jan 23, 2024 at 1:05 PM Sven Schreiber
<sven.schreiber@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) ?
...
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.

Hehe, notice that I asked "possible with gnuplot", not "possible with gretl". The idea is of course to leverage and benefit from existing tools, and especially not to reinvent the wheel.

Seriously, one of the very early (and extremely cool) features of gretl was the 3D-plot it offers via gnuplot, especially because you can rotate it and twist it around with the mouse, live and direct. Back then this always produced lots of ooh-s and aah-s.

I googled around a bit for a gnuplot solution, but without much success, so I thought I'd ask here. Of course one could also try to ask the gnuplot community directly.

thanks

sven