Re: GTK3 + gnuplot



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, then
stick the GdkPixbuf onto a cairo surface.

You could take a look at
https://sourceforge.net/p/gretl/git/ci/master/tree/gui/gpt_control.c
in particular the function render_pngfile().

--
Allin Cottrell
Department of Economics
Wake Forest University, NC



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]