Re: GTK3 + gnuplot



On Wed, Sep 19, 2018 at 12:19 AM Allin Cottrell <cottrell wfu edu> 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.

Do not do that. With high probability, an application using PNG as an
intermediate plot format will get HiDPI wrong and things will look
either blurry or tiny.

Plot to SVG, then render that.


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