Re: GTK3 + gnuplot

2018-10-02 Thread Yuri Khan via gtk-app-devel-list
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

Re: GTK3 + gnuplot

2018-09-18 Thread Eric Cashon via gtk-app-devel-list
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.

Re: GTK3 + gnuplot

2018-09-18 Thread Allin Cottrell
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

Re: GTK3 + gnuplot

2018-09-18 Thread Chris Moller
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