Re: GTK3 + gnuplot
- From: Allin Cottrell <cottrell wfu edu>
- To: arkkimede <arkkimede gmail com>
- Cc: gtk-app-devel-list list <gtk-app-devel-list gnome org>
- Subject: Re: GTK3 + gnuplot
- Date: Tue, 18 Sep 2018 13:19:11 -0400 (EDT)
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]