Easiest way to plot

Using this Julia<->Prolog interface I think this is the easiest way to plot data from SWI-Prolog:

jl_using("Pkg").       % Only if Plots is
:= 'Pkg'.add("Plots"). %  not installed in julia

jl_using("Plots").
y := rand(10).
plt := plot(y, kw(title, "10 Random numbers"), kw(show, true),kw(hover,y)).

I wish Jurassic would be turned into a pack for easy installation.

1 Like

Good alternatives are Nicos’ real package or the Rserve based variant thereof used for SWISH.

2 Likes

There is also a very experimental package that plots lines and points using gnuplot: https://github.com/damianoazzolini/plplot

3 Likes