On Wed, Sep 19, 2018 at 12:19 AM Allin Cottrell wrote:
> > The question now is: "How to embed a gnuplot graphic in gtk3?
> > Could you say, please, where to find a simple example, just to undestand
> > how it is possible to do that?
>
> Get gnuplot to produce a PNG file, load the PNG into a GdkPi
Hi Arkkimede,
With gnuplot you can output to a file and then open the file with GTK+.
https://gitlab.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/Pipes/gnuplot5.c
At one time gnuplot could directly write to GTK but that was a possible
security problem so it no longer works to do this.
On Tue, 18 Sep 2018, arkkimede via gtk-app-devel-list wrote:
The question now is: "How to embed a gnuplot graphic in gtk3?
Could you say, please, where to find a simple example, just to undestand
how it is possible to do that?
Get gnuplot to produce a PNG file, load the PNG into a GdkPixbuf, t
That would be awkward in gnuplot--you'd have to create the plot and then
load it as a pixmap or some such. But there's a utility call plplot
that's designed to be embedded in other applications and it might work
better.
https://tschoonj.github.io/blog/2015/07/05/embedding-plplot-in-gtk-drawin